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

Issue with Crypto.DES.encrypt #6

Open
Chirag777 opened this issue Dec 21, 2015 · 0 comments
Open

Issue with Crypto.DES.encrypt #6

Chirag777 opened this issue Dec 21, 2015 · 0 comments

Comments

@Chirag777
Copy link

I am using Crypto.DES Encryption algo. When i encrypted the string 'Message' with key 'Secret Passphrase' it returns 'GiG1awkLXUBNZXNzYWdl' and when i decrypt it using some random key like 'Secret' it returns 'Message'. How's this possible?

var crypted = Crypto.DES.encrypt("Message", "Secret Passphrase");
console.log(crypted) // returns 'GiG1awkLXUBNZXNzYWdl'
var plain = Crypto.DES.decrypt(crypted, "Secret");
console.log(plain) // returns 'Message'

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

1 participant