AES ECB Encrypting in Python
问题 My main goal is to rewrite this javascript into python password = "AAAABBBBCCCC"; passwordMd5 = CryptoJS.MD5(password); //e1b6b2b3211076a71632bbf2ad0edc05 passwordKey = CryptoJS.SHA256(CryptoJS.SHA256(passwordMd5 + data.v1) + data.v2); //4a5148da63f40e1bcd3e3225f9b79412b7aee745f4b7f831b9d0893d0d6d666f encryptedPassword = CryptoJS.AES.encrypt(passwordMd5, passwordKey, {mode: CryptoJS.mode.ECB,padding: CryptoJS.pad.NoPadding}); //U2FsdGVkX198V2FiYyEGAKISlXBcmad7V0scbooxQ8QMSmp84vtyAfHytynX2mrw