I am using JSBN in javascript to encrypt a set of string (message) of facebook data to securely send them to my server (PHP) and decrypt them there.
Some users are experiencing "Message too long" on something like
"&fbemail='+fbemail+'&gender='+fbgender+'&birthday='+fbbirthday+'&name='+fbname+'&surname='+fbsurname+'&fbuser='+fbuserid"
I have generate a private key through:
$privateKey = openssl_pkey_new(array(
'private_key_bits' => 1024,
'private_key_type' => OPENSSL_KEYTYPE_RSA,
));
Why am I getting that message? The message is not that long.
I have looked at the following post, yet I dont understand how to use AES in javascript without having the AES passphrase compromised.