Class DES


  • public class DES
    extends Object
    This code is derived from the above source JCIFS API Norbert Hranitzky

    and modified again by Michael B. Allen

    • Constructor Detail

      • DES

        public DES()
      • DES

        public DES​(byte[] key)
    • Method Detail

      • makeSMBKey

        public static void makeSMBKey​(byte[] key7,
                                      byte[] key8)
      • setKey

        public void setKey​(byte[] key)
      • encrypt

        public void encrypt​(byte[] clearText,
                            byte[] cipherText)
      • decrypt

        public void decrypt​(byte[] cipherText,
                            byte[] clearText)
      • encrypt

        public byte[] encrypt​(byte[] clearText)
        encrypts an array where the length must be a multiple of 8
      • decrypt

        public byte[] decrypt​(byte[] cipherText)
        decrypts an array where the length must be a multiple of 8
      • squashBytesToInts

        public static void squashBytesToInts​(byte[] inBytes,
                                             int inOff,
                                             int[] outInts,
                                             int outOff,
                                             int intLen)
      • spreadIntsToBytes

        public static void spreadIntsToBytes​(int[] inInts,
                                             int inOff,
                                             byte[] outBytes,
                                             int outOff,
                                             int intLen)