Module com.aoindustries.web.struts
Class DesCipher
java.lang.Object
com.aoindustries.web.struts.clientarea.control.vnc.DesCipher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecrypt(byte[] cipherText, int cipherOff, byte[] clearText, int clearOff) voidencrypt(byte[] clearText, int clearOff, byte[] cipherText, int cipherOff) voidsetKey(byte[] key) static voidspreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen) static voidsquashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
-
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)
-
