Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'createDecryptor' of undefined #12

Open
gigallo opened this issue Apr 14, 2017 · 1 comment
Open

Cannot read property 'createDecryptor' of undefined #12

gigallo opened this issue Apr 14, 2017 · 1 comment

Comments

@gigallo
Copy link

gigallo commented Apr 14, 2017

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:

<script src="../../ext-libs/crypto/core-min.js"></script> <script src="../../ext-libs/crypto/aes.js"></script> <script src="../../ext-libs/crypto/cipher-core-min.js"></script> <script src="../../ext-libs/crypto/enc-base64-min.js"></script> <script src="../../ext-libs/crypto/pbkdf2.js"></script> <script src="../../ext-libs/crypto/enc-utf16-min.js"></script>
@igeorge0902
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants