前端 updateMobile=CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse($("#mobile-phone").val()), CryptoJS.enc.Utf8.parse("abcdefgabcdefg12"), {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}).toString()
$.ajax
url: "/xxxx/xxxx/forget_password"
type: "POST"
data{
password: updateMobile
}
后端
//AES解密
import io.terminus.galaxy.common.util.Aes;
Aes.aesDecrypt(mobile);