Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have encrypted string using algorithm RSA/ECB/PKCS1Padding through java code now the same need to be decrypted using javascript. There are some information regarding RSA on net but still not able to get logic to decrypt through javascript. Need to decrypt string with no server intervention.

I am well versed with java hence i know how to apply symmetric and asymmetric cryptography through java code. That's why encryption part is already done by me. I can decrypt the same through java code.

Requirement is to do decryption through javascript (i.e. at browser) without server intervention. Here I am not asking for code but looking for material to implement the same as I am not able to find anything in concrete.

share|improve this question
    
Your question doesn't explain what you've done to try and solve the problem; it currently reads like a request for code. Please share your attempted implementation and explain how it fails to meet your requirements. –  Duncan Jul 10 '13 at 12:43
2  
Please check this: matasano.com/articles/javascript-cryptography –  ntoskrnl Jul 10 '13 at 12:47
    
@DuncanJones My requirement is to do decryption through javascript (i.e. at browser) without server intervention. Here I am not asking for code but looking for material to implement the same as I am not able to find anything in concrete and even i am new to cryptography through Javascript. –  gjosh Jul 11 '13 at 4:43
    
@ntoskrnl : Thanks for the link, looks like one should not use javascript for cryptography. May be we need a design change. –  gjosh Jul 11 '13 at 5:34
    
Any one having idea of how to implement this ? –  gjosh Jul 11 '13 at 8:01

1 Answer 1

You may want to check out forge, there are lots of examples for decrypting (or encrypting) on the README:

https://github.com/digitalbazaar/forge

It's unclear what you mean by RSA/ECB/PKCS1Padding -- but forge has support for RSA encryption /decryption using PKCS#1 padding and AES and 3DES CBC encryption/decryption. Hopefully it will work for you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.