I use CryptoJS to encrypt the string:
function doHash(msg){
msg = String(msg);
var passphrase = 'aggourakia';
var hash = CryptoJS.AES.encrypt(msg, passphrase);
var ciphertext= hash.ciphertext.toString();
return ciphertext;
}
As I understand it, CryptoJS uses a passphrase to generate a key, which is then used to encrypt data.
However, I would like to decrypt the cipher using a PHP function, or maybe an online tool like: http://aesencryption.net/
The problem is that they are expecting a key , not a passphrase.
How can I provide the key directly for CryptoJS AES, which can I use on the server side or in any online decryption tool?
, PHP- AES- , /