public interface Crypto
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt(java.lang.String ciphertext)
Decrypts the cipher text and returns the result.
|
java.lang.String |
encrypt(java.lang.String plaintext)
Encrypts the plain text and returns the result.
|
java.lang.String decrypt(java.lang.String ciphertext) throws CryptoException
ciphertext
- base64 encoded encrypted dataCryptoException
- when the ciphertext cannot be decrypted with the
key or on decryption error.java.lang.String encrypt(java.lang.String plaintext) throws CryptoException
plaintext
- data to be encryptedCryptoException
- on encryption error
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.