|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.crypto.Encoder
Methods for encoding (encrypting) user data.
Decoder
Method Summary | |
static java.lang.String |
encode(java.lang.String s,
java.lang.String key)
Encrypt a given 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.Encoder plaintext password
args
- Command line arguments.
java.lang.Exception
public static java.lang.String encode(java.lang.String s, java.lang.String key) throws java.security.GeneralSecurityException
s
- A string to encrypt.key
- An encryption password. This is converted into a binary encryption key of
the appropriate length.
java.security.GeneralSecurityException
- Thrown if an error occurs.Decoder.decode(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |