类 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.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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • StringFogWrapper

        public StringFogWrapper​(java.lang.String impl)
    • 方法详细资料

      • encrypt

        public byte[] encrypt​(java.lang.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 java.lang.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​(java.lang.String data)
        从接口复制的说明: IStringFog
        Whether the string should be encrypted.
        指定者:
        shouldFog 在接口中 IStringFog
        参数:
        data - The original data.
        返回:
        If you want to skip this String, return false.