接口 IStringFog

  • 所有已知实现类:
    StringFogWrapper

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

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      java.lang.String decrypt​(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.
      boolean shouldFog​(java.lang.String data)
      Whether the string should be encrypted.
    • 方法详细资料

      • encrypt

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

        java.lang.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​(java.lang.String data)
        Whether the string should be encrypted.
        参数:
        data - The original data.
        返回:
        If you want to skip this String, return false.