Class Crypto.AES
java.lang.Object
com.almis.awe.model.util.security.Crypto.AES
- Enclosing class:
- Crypto
AES encryption utilities
-
Method Summary
-
Method Details
-
encrypt
public static String encrypt(@NonNull @NonNull String plaintext, String passphrase, String encoding) Encrypt with AES algorithm- Parameters:
plaintext
- Text to encryptpassphrase
- Password for encryptionencoding
- Encoding- Returns:
- Encrypted text
-
decrypt
public static String decrypt(@NonNull @NonNull String encrypted, String passphrase, String encoding) Decrypt with AES algorithm- Parameters:
encrypted
- Ciphered textpassphrase
- Password for decryptionencoding
- Encoding- Returns:
- Decrypted text
-