Skip to content

Instantly share code, notes, and snippets.

View badbadc0ffee's full-sized avatar

Florian Mösch badbadc0ffee

View GitHub Profile
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
/**
* Usage:
* <pre>