Encryption support. Closes #22