Class StandardEncrypter

  • All Implemented Interfaces:
    Encrypter

    public class StandardEncrypter
    extends java.lang.Object
    implements Encrypter
    • Field Detail

      • headerBytes

        private byte[] headerBytes
    • Constructor Detail

      • StandardEncrypter

        public StandardEncrypter​(char[] password,
                                 long key,
                                 boolean useUtf8ForPassword)
                          throws ZipException
        Throws:
        ZipException
    • Method Detail

      • init

        private void init​(char[] password,
                          long key,
                          boolean useUtf8ForPassword)
                   throws ZipException
        Throws:
        ZipException
      • encryptByte

        protected byte encryptByte​(byte val)
      • generateRandomBytes

        protected byte[] generateRandomBytes()
      • getHeaderBytes

        public byte[] getHeaderBytes()