类 StringFogWrapper
- java.lang.Object
-
- com.github.megatronking.stringfog.StringFogWrapper
-
- 所有已实现的接口:
IStringFog
public final class StringFogWrapper extends java.lang.Object implements IStringFog
A wrapper for the real implementation of fogs.- 从以下版本开始:
- 2018/9/20 16:14
-
-
构造器概要
构造器 构造器 说明 StringFogWrapper(java.lang.String impl)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.Stringdecrypt(byte[] data, byte[] key)Decrypt the data to origin by the special key.byte[]encrypt(java.lang.String data, byte[] key)Encrypt the data by the special key.booleanshouldFog(java.lang.String data)Whether the string should be encrypted.
-
-
-
方法详细资料
-
encrypt
public byte[] encrypt(java.lang.String data, byte[] key)从接口复制的说明:IStringFogEncrypt the data by the special key.- 指定者:
encrypt在接口中IStringFog- 参数:
data- The original data.key- Encrypt key.- 返回:
- The encrypted data.
-
decrypt
public java.lang.String decrypt(byte[] data, byte[] key)从接口复制的说明:IStringFogDecrypt the data to origin by the special key.- 指定者:
decrypt在接口中IStringFog- 参数:
data- The encrypted data.key- Encrypt key.- 返回:
- The original data.
-
shouldFog
public boolean shouldFog(java.lang.String data)
从接口复制的说明:IStringFogWhether the string should be encrypted.- 指定者:
shouldFog在接口中IStringFog- 参数:
data- The original data.- 返回:
- If you want to skip this String, return false.
-
-