Skip to content

RSA Encryption Javascript

Can anyone please help me with this – I have been instructed to write an application that takes some data then encrypts it with an RSA public key.

It apparently needs to be “RSA encryption” (I have never heard or seen this before?)

Which encryption cipher is RSA meant to use as standard?


var data = "Xa21dr";



Never mind found the answer myself!

RSA Encryption standard uses PKCS #1

Best library to use is pidCrypt, nothing else worked for me!

the idiots on the other end failed to let me know that that RSA Public Key was meant to be base64 decoded too before encrypting the DATA before sending.

User contributions licensed under: CC BY-SA
6 People found this is helpful