|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.security.SerialDecoder
public final class SerialDecoder
support class for easy string encryption with the Blowfish algorithm, now in CBC mode with a SHA-1 key setup and correct padding
Constructor Summary | |
---|---|
SerialDecoder(String sPassword)
constructor to set up a string as the key (oversized password will be cut) |
Method Summary | |
---|---|
String |
decrypt(String sCipherText)
decrypts a hexbin string (handling is case sensitive) |
void |
destroy()
destroys (clears) the encryption engine, after that the instance is not valid anymore |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerialDecoder(String sPassword)
sPassword
- the password (treated as a real unicode array)Method Detail |
---|
public String decrypt(String sCipherText)
sCipherText
- hexbin string to decrypt
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |