javascript AES暗号解読、AES/ECB/PKCS 7

834 ワード

もっと読む
 
 
 
 
 
    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));
 
 
  • AES 2.rar(32.3 KB)
  • ダウンロード回数:53