javascript AES暗号解読、AES/ECB/PKCS 7
もっと読む AES 2.rar(32.3 KB) ダウンロード回数:53
var key_hash = CryptoJS.MD5("Message");
var key = CryptoJS.enc.Utf8.parse(key_hash);
var iv = "";
var encrypted = CryptoJS.AES.encrypt("Message", key, { iv: iv,mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7,format:CryptoJS.format.Hex});
document.write("encode:"+encrypted);
var dec = CryptoJS.AES.decrypt(encrypted, key, { iv: iv,mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7,format:CryptoJS.format.Hex});
document.write("deccode:"+dec.toString(CryptoJS.enc.Utf8));