用户部分信息 加密处理

This commit is contained in:
2022-01-24 16:35:11 +08:00
parent d43b77b3c8
commit b40371a84f
2 changed files with 77 additions and 15 deletions
@@ -96,6 +96,20 @@ public class PasswordUtil {
return bytesToHexString(encipheredData);
}
/**
* 自定义加密明文字符串
*
* @param plaintext
* 待加密的明文字符串
* @return 加密后的密文字符串
* @throws Exception
*/
public static String encrypt(String plaintext) {
return encrypt(plaintext, ALGORITHM, Salt);
}
/**
* 解密密文字符串
*