Package com.github.cafapi.common.api
Interface Cipher
- All Known Implementing Classes:
JasyptCipher
,NullCipher
public interface Cipher
Provides a method of encrypting and decrypting string data, such as passwords.
-
Method Summary
-
Method Details
-
decrypt
Decrypt a string.- Parameters:
input
- the data to decrypt- Returns:
- the decrypted data
- Throws:
CipherException
- if the decryption fails
-
encrypt
Encrypt a string.- Parameters:
input
- the data to encrypt- Returns:
- the encrypted data
- Throws:
CipherException
- if the encryption fails
-