类 SecurityUtility
- java.lang.Object
-
- tech.testnx.cah.common.utils.SecurityUtility
-
- 所有已实现的接口:
Cryptograph
public class SecurityUtility extends Object implements Cryptograph
- 作者:
- Yun
-
-
字段概要
字段 修饰符和类型 字段 说明 static SecurityUtilityINSTANCE
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]decodeByBase64(byte[] encodedContent)StringdecodeByBase64(String encodedText)Stringdecrypt(String encryptedText)Decrypt an encrypted textbyte[]encodeByBase64(byte[] plainContent)StringencodeByBase64(String plainText)Stringencrypt(String plainText)Encrypt a plainText with String type
-
-
-
字段详细资料
-
INSTANCE
public static final SecurityUtility INSTANCE
-
-
方法详细资料
-
encodeByBase64
public byte[] encodeByBase64(byte[] plainContent)
-
decodeByBase64
public byte[] decodeByBase64(byte[] encodedContent)
-
encrypt
public String encrypt(String plainText)
从接口复制的说明:CryptographEncrypt a plainText with String type- 指定者:
encrypt在接口中Cryptograph
-
decrypt
public String decrypt(String encryptedText)
从接口复制的说明:CryptographDecrypt an encrypted text- 指定者:
decrypt在接口中Cryptograph
-
-