|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.crypto.Decoder
Methods for decoding (decrypting) user data.
Encoder
Method Summary | |
static java.lang.String |
decode(java.lang.String s,
java.lang.String key)
Decrypt a given encrypted string using a given password. |
static void |
main(java.lang.String[] args)
Test driver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void main(java.lang.String[] args) throws java.lang.Exception
Usage
java tribble.crypto.Decoder ciphertext password
args
- Command line arguments.
java.lang.Exception
public static java.lang.String decode(java.lang.String s, java.lang.String key) throws java.security.GeneralSecurityException
s
- A string to decrypt.key
- An decryption password. This is converted into a binary decryption key of
the appropriate length.
java.security.GeneralSecurityException
- Thrown if the decryption fails, which is detected if the salt used
to encrypt the password does not match its decrypted value, or if some
other error occurs.Encoder.encode(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |