Implemented encrypt/decrypt streams. Closes #1.