Crypto stuff

Added PPK support for encrypting documents.