Skip to content

Instantly share code, notes, and snippets.

View tfmend's full-sized avatar

Thiago Furtado tfmend

  • São Paulo, Brasil
View GitHub Profile
@tfmend
tfmend / AesCipher.java
Created September 6, 2019 18:15 — forked from demisang/AesCipher.java
AES/CBC/PKCS5Padding encrypt/decrypt PHP and JAVA example classes
import android.support.annotation.Nullable;
import android.util.Base64;
import java.nio.ByteBuffer;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;