Implement field-level encryption.

Closes #9.