============
Encryption-Decryption using AES(Advance Encryption Standard) symmetric algorithm in Android
You can encrypt/ decrypt password, tocken or any secret key
Gradle :
Add the below dependency into your gradle file:
compile 'com.azrashaikh.cryptography:aes-lib:1.0.1'
Pom :
<dependency org='com.azrashaikh.cryptography' name='aes-lib' rev='1.0.1'>
<artifact name='$AID' ext='pom'></artifact>
</dependency>
-
Create instance of class SymmetricAlgorithmAES:
SymmetricAlgorithmAES symmetricAlgorithmAES= new SymmetricAlgorithmAES(this);
-
To encypt data :
symmetricAlgorithmAES.encryptString("yourStringToEncypt");
-
To decrypt data :
symmetricAlgorithmAES.decryptString("yourStringToEncypt");
Screenshots :