-
- All Implemented Interfaces:
public final class AESEncryptionManagerEncryption / Decryption service using the AES algorithm example for nullbeans.com https://nullbeans.com/how-to-encrypt-decrypt-files-byte-arrays-in-java-using-aes-gcm/#Generating_an_AES_key
-
-
Constructor Summary
Constructors Constructor Description AESEncryptionManager()
-
Method Summary
Modifier and Type Method Description final ByteArrayencryptData(SharedPreferences sharedPref, String encryptPassword, ByteArray data)This method will encrypt the given data final ByteArraydecryptData(SharedPreferences sharedPref, String encryptPassword, ByteArray encryptedData)This method will decrypt the given data -
-
Method Detail
-
encryptData
final ByteArray encryptData(SharedPreferences sharedPref, String encryptPassword, ByteArray data)
This method will encrypt the given data
- Parameters:
sharedPref- : the sharedPref, to fetch the keydata- : the data that will be encrypted
-
decryptData
final ByteArray decryptData(SharedPreferences sharedPref, String encryptPassword, ByteArray encryptedData)
This method will decrypt the given data
- Parameters:
sharedPref- : the sharedPref, to fetch the keyencryptedData- : the data that will be decrypted
-
-
-
-