I have some Java code that sends the public exponent and modulus (very, very long integer) via json to the javascript.
I need to apply RSA encryption on a text field (password) using these values in JavaScript.
I have tried many available things on net but no success yet. And I don’t have SSL in the application.
Can someone please help me on this? Some sample/exact code will be a blessing.
Have you checked out http://code.google.com/p/jscryptolib/ ?
Alternatively there is another implementation here: http://www-cs-students.stanford.edu/~tjw/jsbn/
You can find a demo of the second implementation here: http://www-cs-students.stanford.edu/~tjw/jsbn/rsa.html – just view source to see how it’s used