I have been using jCryption for a secure login. On the client i am using the JavaScript package and on the Java decryption i am using BouncyCastle jar to decrypt.
The problem is that it works OK in Tomcat but when i take the same webapp and deploy on Jboss i am having problems loading the BouncyCastle jar.
My question is: is there a way to encrypt using jCryption that will produce a more standardized RSA output which will allow me to use other security providers?
Here is the snippet for RSA decoding compatible with jCryption. We assume that
encExternalKey
is what jCryption send inkey
parameter on handshake call.modulus
andsecretExponent
are taken from100_1024_keys.inc.php
file that comes with jCryption.