We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var key = CryptoJS.enc.Utf8.parse('GftZqNEoBVdB2kwT');
// iv采用的是16位的,同样为了方便转成UTF8 var iv = CryptoJS.enc.Utf8.parse('3zyJFPEzh5rUeUNh'); // 加密方式使用CBC,padding偏移量设置成Pkcs7,以便和后端对应解密 let encryptData = CryptoJS.AES.encrypt(password, key, { mode: CryptoJS.mode.CBC, iv: iv, padding: CryptoJS.pad.Pkcs7 });
The text was updated successfully, but these errors were encountered:
var key = CryptoJS.enc.Utf8.parse('GftZqNEoBVdB2kwT'); // iv采用的是16位的,同样为了方便转成UTF8 var iv = CryptoJS.enc.Utf8.parse('3zyJFPEzh5rUeUNh'); // 加密方式使用CBC,padding偏移量设置成Pkcs7,以便和后端对应解密 let encryptData = CryptoJS.AES.encrypt(password, key, { mode: CryptoJS.mode.CBC, iv: iv, padding: CryptoJS.pad.Pkcs7 });
CryptoJS.AES.encrypt("admin",CryptoJS.enc.Utf8.parse('GftZqNEoBVdB2kwT'), {mode: CryptoJS.mode.CBC,iv: CryptoJS.enc.Utf8.parse('3zyJFPEzh5rUeUNh'),padding: CryptoJS.pad.Pkcs7}).toString() 'UO0cglJMcK2XMdSaoqRePg=='
Sorry, something went wrong.
这个已经内置了,可以直接用
No branches or pull requests
var key = CryptoJS.enc.Utf8.parse('GftZqNEoBVdB2kwT');
The text was updated successfully, but these errors were encountered: