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

"Object is not a function" when trying to use AES #12

Closed
toymachiner62 opened this issue Jun 26, 2014 · 1 comment
Closed

"Object is not a function" when trying to use AES #12

toymachiner62 opened this issue Jun 26, 2014 · 1 comment
Labels

Comments

@toymachiner62
Copy link

I have this simple script and it errors out.

task.js

var AES = require("crypto-js/aes");
var key = "mykey";
var secret = "mysecret";
var encryptPassword = AES(secret, key);
console.log(encryptPassword);

snap46

@ghost ghost added the question label Jun 26, 2014
@ghost
Copy link

ghost commented Jun 26, 2014

Just have a look for the API docs: https://code.google.com/p/crypto-js/#AES

var AES = require("crypto-js/aes");
AES.encrypt(...);
AES.decrypt(...);

@ghost ghost closed this as completed Jun 26, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant