Skip to content

Instantly share code, notes, and snippets.

View Fregionz's full-sized avatar
🕵️‍♂️
On vacation

BRS Fregionz

🕵️‍♂️
On vacation
  • Canada
View GitHub Profile
@Fregionz
Fregionz / AES256Cipher.java
Created November 27, 2018 07:04 — forked from dealforest/AES256Cipher.java
AES256 encryption on Android
package net.dealforest.sample.crypt;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.InvalidKeyException;