java.lang.Object
com.aoindustries.web.struts.clientarea.control.vnc.DesCipher

public final class DesCipher extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    DesCipher(byte[] key)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decrypt(byte[] cipherText, int cipherOff, byte[] clearText, int clearOff)
     
    void
    encrypt(byte[] clearText, int clearOff, byte[] cipherText, int cipherOff)
     
    void
    setKey(byte[] key)
     
    static void
    spreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
     
    static void
    squashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DesCipher

      public DesCipher(byte[] key)
  • Method Details

    • setKey

      public void setKey(byte[] key)
    • encrypt

      public void encrypt(byte[] clearText, int clearOff, byte[] cipherText, int cipherOff)
    • decrypt

      public void decrypt(byte[] cipherText, int cipherOff, byte[] clearText, int clearOff)
    • 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)