public interface Cryptor
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] ciphertext)
Decrypt the ciphertext in byte array format to yield the original
cleartext.
|
byte[] |
encrypt(byte[] cleartext)
Encrypt the cleartext in byte array format.
|
Object |
sealObject(Object object) |
Object |
unsealObject(Object object) |
byte[] encrypt(byte[] cleartext) throws CryptoException
cleartext
- The text to be encrypted, in byte formCryptoException
Object sealObject(Object object) throws CryptoException
CryptoException
byte[] decrypt(byte[] ciphertext) throws CryptoException
ciphertext
- The text to be encrypted, in byte formCryptoException
Object unsealObject(Object object) throws CryptoException
CryptoException
Copyright © 2019. All rights reserved.