Class NullCipher

java.lang.Object
com.github.cafapi.common.ciphers.Null.NullCipher
All Implemented Interfaces:
Cipher

public final class NullCipher extends Object implements Cipher
Pass-through module when no encryption/decryption is desired.
  • Constructor Details

    • NullCipher

      public NullCipher()
  • Method Details

    • decrypt

      public String decrypt(String input)
      Description copied from interface: Cipher
      Decrypt a string.
      Specified by:
      decrypt in interface Cipher
      Parameters:
      input - the data to decrypt
      Returns:
      the decrypted data
    • encrypt

      public String encrypt(String input)
      Description copied from interface: Cipher
      Encrypt a string.
      Specified by:
      encrypt in interface Cipher
      Parameters:
      input - the data to encrypt
      Returns:
      the encrypted data