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
encExternalKeyis what jCryption send inkeyparameter on handshake call.modulusandsecretExponentare taken from100_1024_keys.inc.phpfile that comes with jCryption.