|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.credentialsstorage.AESCrypto
public class AESCrypto
Performs encryption and decryption of text using AES algorithm.
| Constructor Summary | |
|---|---|
AESCrypto(String masterPassword)
Creates the encryption and decryption objects and the key. |
|
| Method Summary | |
|---|---|
String |
decrypt(String ciphertext)
Decrypts the cyphertext using the key. |
String |
encrypt(String plaintext)
Encrypts the plaintext using the key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AESCrypto(String masterPassword)
masterPassword - used to derive the key. Can be null.| Method Detail |
|---|
public String decrypt(String ciphertext)
throws CryptoException
decrypt in interface Cryptociphertext - base64 encoded encrypted data
CryptoException - when the ciphertext cannot be decrypted with the
key or on decryption error.
public String encrypt(String plaintext)
throws CryptoException
encrypt in interface Cryptoplaintext - data to be encrypted
CryptoException - on encryption error
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||