Skip to content

Instantly share code, notes, and snippets.

View marcouberti's full-sized avatar

Marco Uberti marcouberti

View GitHub Profile
@marcouberti
marcouberti / Decrypter.java
Created May 5, 2020 12:28 — forked from scotttam/Decrypter.java
encrypt and decrypt with PBKDF2/SHA1 and AES
import javax.crypto.Cipher;
import java.security.spec.KeySpec;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import javax.crypto.SecretKeyFactory;
import java.security.AlgorithmParameters;
import javax.crypto.spec.IvParameterSpec;
public class Decrypter {