用户部分信息 加密处理
This commit is contained in:
+14
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 解密密文字符串
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user