Skip to content

Instantly share code, notes, and snippets.

View dweymouth's full-sized avatar

Drew Weymouth dweymouth

View GitHub Profile
@dweymouth
dweymouth / AES.java
Created April 19, 2014 16:18
A Java class to perform password-based AES encryption and decryption
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <dweymouth@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. D. Weymouth 4/2014
* ----------------------------------------------------------------------------
*/
import java.io.*;