Refactor openpgp encrypter