Open ghost opened 8 years ago
I can't say for sure but you may need to update your first two lines of code to this.
KEY = CryptoJS.enc.Utf8.parse('ABCDEF1234567890');
IV = CryptoJS.enc.Utf8.parse('ABCDEF1234567890');
It was my understanding that both of those need to be CryptoJS WordArrays.
I could be misunderstood but it's worth a shot :)
Did you try the suggested CryptoJS.enc.Utf8.parse(...)
?
I use python Crypto lib, and javascript crypto-js lib implements encrypt a username, but something is wrong with the output result.
What's wrong?