Code base

Encryption now works. Hurrah!