Class TrivialCrypt

  • All Implemented Interfaces:
    ICrypt

    public class TrivialCrypt
    extends AbstractCrypt
    THIS CLASS IS FOR TESTING PURPOSES ONLY. DO NOT USE IT IN PRODUCTION CODE!
    Author:
    Jonathan Locke
    • Constructor Detail

      • TrivialCrypt

        public TrivialCrypt()
    • Method Detail

      • crypt

        protected byte[] crypt​(byte[] input,
                               int mode)
                        throws java.security.GeneralSecurityException
        Description copied from class: AbstractCrypt
        Crypts the given byte array
        Specified by:
        crypt in class AbstractCrypt
        Parameters:
        input - byte array to be crypted
        mode - crypt mode
        Returns:
        the input crypted. Null in case of an error
        Throws:
        java.security.GeneralSecurityException