Set the Encryption key,Expected to be set to null before Application goes to background.
Syntax
public static
void
setEncryptionKey
(
String
Key
,
Context
context
) throws PersistenceException
Parameters
-
key: –
This is the key which is generated by getEncryptionKey and same key must be set every time application is opened or brought to foreground.
-
Context: –
Application Context.
Example 1
EncryptionKeyManager.setEncryptionKey("encryptionkey",getApplicationContext());
Usage
And must be set with Key which is generated using getEncryptionkey on Application.