Package com.identity4j.util.crypt.impl
Class PBEWithMD5AndDESEncoder.Crypt
- java.lang.Object
-
- com.identity4j.util.crypt.impl.PBEWithMD5AndDESEncoder.Crypt
-
- Enclosing class:
- PBEWithMD5AndDESEncoder
public static class PBEWithMD5AndDESEncoder.Crypt extends Object
-
-
Constructor Summary
Constructors Constructor Description Crypt(char[] pass, byte[] salt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decrypt(byte[] toDecrypt)byte[]encrypt(byte[] toEncrypt)voidinit(char[] pass, byte[] salt, int iterations)
-
-
-
Constructor Detail
-
Crypt
public Crypt(char[] pass, byte[] salt) throws SecurityException- Throws:
SecurityException
-
-
Method Detail
-
init
public void init(char[] pass, byte[] salt, int iterations) throws SecurityException- Throws:
SecurityException
-
encrypt
public byte[] encrypt(byte[] toEncrypt) throws SecurityException- Throws:
SecurityException
-
decrypt
public byte[] decrypt(byte[] toDecrypt) throws SecurityException- Throws:
SecurityException
-
-