public interface EncryptionAlgorithm
AESBuilder,
TripleDESBuilder,
RSABuilder| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] input)
Decrypts specified array of bytes.
|
String |
decrypt(String input)
Decrypts specified input text using default UTF-8 encoding.
|
byte[] |
encrypt(byte[] input)
Encrypts specified array of bytes.
|
String |
encrypt(String input)
Encrypts specified input text.
|
byte[] encrypt(byte[] input)
throws EncryptionException
input - input bytes to be encryptedEncryptionException - possible exception when encryption failsString encrypt(String input) throws EncryptionException
input - input text to be encryptedEncryptionException - possible exception when encryption failsbyte[] decrypt(byte[] input)
throws EncryptionException
input - input bytes to be decryptedEncryptionException - possible exception when decryption failsString decrypt(String input) throws EncryptionException
input - input text to be decryptedEncryptionException - possible exception when decryption failsCopyright © 2014. All rights reserved.