我无法重现此功能并生成JS。
<?php
//Some padding
$result = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, "1234567890123456", padded("plainText"),MCRYPT_MODE_ECB)
$res = base64_encode($result)
....
我已经尝试了角度为6的crypto js,js-mcrypt
const result = CryptoJS.AES.encrypt("plainText", "1234567890123456", {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
}).toString(CryptoJS.enc.Base64);