|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.agents.sha.session.DesEncrypter
public class DesEncrypter
Simple class realizing DES-encrypting and decrypting procedures.
Constructor Summary | |
---|---|
DesEncrypter(SecretKey key)
Constructs DesEncrypter. |
Method Summary | |
---|---|
String |
decrypt(String str)
Returns the given string, which was previously DES-encrypted with this DesEncrypter, in a plain text form. |
String |
encrypt(String str)
Returns the given string in a DES-encrypted form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DesEncrypter(SecretKey key)
key
- is the A secret (symmetric) key which will be used to
initialize encrypting and decrypting procedures.Method Detail |
---|
public String encrypt(String str)
str
- is a plain text to be encrypted
public String decrypt(String str)
str
- is encrypted text to be descrypted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |