Class ZipCryptoEngine


  • public class ZipCryptoEngine
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int[] CRC_TABLE  
      private int[] keys  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipCryptoEngine()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private int crc32​(int oldCrc, byte charAt)  
      byte decryptByte()  
      void initKeys​(char[] password, boolean useUtf8ForPassword)  
      void updateKeys​(byte charAt)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • keys

        private final int[] keys
      • CRC_TABLE

        private static final int[] CRC_TABLE
    • Constructor Detail

      • ZipCryptoEngine

        public ZipCryptoEngine()
    • Method Detail

      • initKeys

        public void initKeys​(char[] password,
                             boolean useUtf8ForPassword)
      • updateKeys

        public void updateKeys​(byte charAt)
      • crc32

        private int crc32​(int oldCrc,
                          byte charAt)
      • decryptByte

        public byte decryptByte()