接口 IStringFog

所有已知实现类:
StringFogWrapper

public interface IStringFog
Interface of how to encrypt and decrypt a string.
从以下版本开始:
2018/9/20 16:15
  • 方法概要

    修饰符和类型
    方法
    说明
    decrypt(byte[] data, byte[] key)
    Decrypt the data to origin by the special key.
    byte[]
    encrypt(String data, byte[] key)
    Encrypt the data by the special key.
    boolean
    Whether the string should be encrypted.
  • 方法详细资料

    • encrypt

      byte[] encrypt(String data, byte[] key)
      Encrypt the data by the special key.
      参数:
      data - The original data.
      key - Encrypt key.
      返回:
      The encrypted data.
    • decrypt

      String decrypt(byte[] data, byte[] key)
      Decrypt the data to origin by the special key.
      参数:
      data - The encrypted data.
      key - Encrypt key.
      返回:
      The original data.
    • shouldFog

      boolean shouldFog(String data)
      Whether the string should be encrypted.
      参数:
      data - The original data.
      返回:
      If you want to skip this String, return false.