I'm getting this error in RSAEncrypt when trying to do AES-CBC 256 bit encryption. I think it has to do with the age of the JavaScript engine and use of String.fromCharCode() as it relates to UTF-8 encoding, but I'm not sure.
Any ideas what's wrong?
my code is:
var Bits = 256;
RSAkey = cryptico.generateRSAKey(PassWord, Bits); // PassWord is "12340000000..." 32 characters long
PublicKeyString = cryptico.publicKeyString(RSAkey);
var ret = cryptico.encrypt(ping, PublicKeyString); // fails in here, ping is a JSON (string)
I'm getting this error in RSAEncrypt when trying to do AES-CBC 256 bit encryption. I think it has to do with the age of the JavaScript engine and use of String.fromCharCode() as it relates to UTF-8 encoding, but I'm not sure. Any ideas what's wrong? my code is: var Bits = 256; RSAkey = cryptico.generateRSAKey(PassWord, Bits); // PassWord is "12340000000..." 32 characters long PublicKeyString = cryptico.publicKeyString(RSAkey); var ret = cryptico.encrypt(ping, PublicKeyString); // fails in here, ping is a JSON (string)