Interface Cipher
- All Known Implementing Classes:
AESGCMNoPadding
public interface Cipher
Cipher interface.
- Since:
- 4.0.1
-
Method Summary
-
Method Details
-
encrypt
Encrypts the clear text data with password and returns result. No argument is allowed to benull.- Throws:
CipherException- if encryption failed (is unexpected to happen, as it would mean that Java Runtime lacks some Crypto elements).
-
decrypt
Decrypts the encrypted text with password and returns clear text result. No argument is allowed to benull.- Throws:
CipherException- if decryption failed. It may happen as withencrypt(String, String)due Java Runtime lacking some Crypto elements (less likely). Most likely decrypt will fail due wrong provided password or maybe corrupted encrypted text.
-