Module com.aoindustries.web.struts
Class DesCipher
java.lang.Object
com.aoindustries.web.struts.clientarea.control.vnc.DesCipher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
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)
-