You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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'
The text was updated successfully, but these errors were encountered: