类 StringFogWrapper

java.lang.Object
com.github.megatronking.stringfog.StringFogWrapper
所有已实现的接口:
IStringFog

public final class StringFogWrapper extends Object implements IStringFog
A wrapper for the real implementation of fogs.
从以下版本开始:
2018/9/20 16:14
  • 构造器详细资料

    • StringFogWrapper

      public StringFogWrapper(String impl)
  • 方法详细资料

    • encrypt

      public byte[] encrypt(String data, byte[] key)
      从接口复制的说明: IStringFog
      Encrypt the data by the special key.
      指定者:
      encrypt 在接口中 IStringFog
      参数:
      data - The original data.
      key - Encrypt key.
      返回:
      The encrypted data.
    • decrypt

      public String decrypt(byte[] data, byte[] key)
      从接口复制的说明: IStringFog
      Decrypt the data to origin by the special key.
      指定者:
      decrypt 在接口中 IStringFog
      参数:
      data - The encrypted data.
      key - Encrypt key.
      返回:
      The original data.
    • shouldFog

      public boolean shouldFog(String data)
      从接口复制的说明: IStringFog
      Whether the string should be encrypted.
      指定者:
      shouldFog 在接口中 IStringFog
      参数:
      data - The original data.
      返回:
      If you want to skip this String, return false.