/** * AES解密手机,邮箱 * * @param result */ private void deAES(Map<String, Object> result) { result.put("tel", AESOperator.getInstance().decrypt((String) result.get("tel"))); result.put("email", AESOperator.getInstance().decrypt((String) result.get("email"))); }
/** * AES加密手机,邮箱 * * @param saveParam */ private void enAES(Map<String, Object> saveParam) { saveParam.put("tel", AESOperator.getInstance().encrypt((String) saveParam.get("tel"))); saveParam.put("email", AESOperator.getInstance().encrypt((String) saveParam.get("email"))); }