Class ThreeDes
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.util.ThreeDes
-
public class ThreeDes extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ThreeDes()
-
Method Summary
Modifier and Type Method Description static java.lang.String
decrypt(java.lang.String encodestr)
static byte[]
decryptMode(java.lang.String iv, java.lang.String key, byte[] src)
static java.lang.String
encodeHex(byte[] bytes)
static java.lang.String
encrypt(java.lang.String originalstr)
static byte[]
encryptMode(java.lang.String iv, java.lang.String key, java.lang.String src)
static void
main(java.lang.String[] args)
static java.lang.String
parseByte2HexStr(byte[] buf)
static byte[]
parseHexStr2Byte(java.lang.String hexStr)
-
-
-
Method Detail
-
encryptMode
public static byte[] encryptMode(java.lang.String iv, java.lang.String key, java.lang.String src)
-
decryptMode
public static byte[] decryptMode(java.lang.String iv, java.lang.String key, byte[] src)
-
parseHexStr2Byte
public static byte[] parseHexStr2Byte(java.lang.String hexStr)
-
parseByte2HexStr
public static java.lang.String parseByte2HexStr(byte[] buf)
-
encodeHex
public static final java.lang.String encodeHex(byte[] bytes)
-
encrypt
public static java.lang.String encrypt(java.lang.String originalstr)
-
decrypt
public static java.lang.String decrypt(java.lang.String encodestr) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
main
public static void main(java.lang.String[] args) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
-