CryptoJS icon indicating copy to clipboard operation
CryptoJS copied to clipboard

Cannot read property 'createDecryptor' of undefined

Open gigallo opened this issue 9 years ago • 1 comments

Hi

I'm trying to use the library to encrypt/decrypt aes messages but when I try to decrypt a message I got the message of the title. This is what I try to do:

var key = CryptoJS.enc.Base64.parse(password); var decryptedData = CryptoJS.AES.decrypt( response.token, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 } );

This are the loaded libraries:

gigallo avatar Apr 14 '17 17:04 gigallo

I am able to use AES, pls visit my github site for a working solution: https://github.com/igeorge0902/Gateway/blob/update/WWW/README.md

igeorge0902 avatar Apr 18 '17 08:04 igeorge0902