Class Crypto.NoOp

  • Enclosing class:
    Crypto

    public static final class Crypto.NoOp
    extends Crypto
    • Field Detail

      • NO_OP

        public static final Crypto NO_OP
    • Method Detail

      • decrypt

        public byte[] decrypt​(String strToDecrypt)
        Description copied from class: Crypto
        The method returns either the decrypted strToDecrypt, either the strToDecrypt itself if it is not recognized as a crypted string or if the decryption fails. The return value is a byte array for security purpose, it is your responsibility to convert it then to a String or not (use of char[] is recommended).
        Overrides:
        decrypt in class Crypto
        Returns:
        the decrypted strToDecrypt as an array of bytes, never null
        See Also:
        Crypto.getChars(byte[])
      • clear

        public void clear()
        Description copied from class: Crypto
        Clear sensible values. That makes the current object unusable.
        Overrides:
        clear in class Crypto