あなたのウェブサイトで、OpenPGP標準に従って暗号化されたメッセージを送信するフォームを作成し、Thunderbird & Enigmailで復号化することができます。オンラインショップからの注文が含まれます。私のサーバーはGnuPGをサポートしていないので、GnuPGを使用することはできません。純粋なPHPでのOpenPGPの実装がhttps://github.com/bendiken/openpgp-php/tree/master/libとhttp://phpseclib.sourceforge.net/で利用可能であることがわかりました。私はRSA鍵の暗号化に成功しましたが、私はThunderbirdを解読できません。純粋なPHPでのOpenPGP暗号化
純粋なPHPのメッセージをOpenPGP標準として暗号化するために上記のソフトウェアを使用する方法と使用しない方法はありますか?
例PGP鍵ペア(私は公開をやっているか知っている - 出版のために特別に作成):
-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v2.0.17 (MingW32)
lQOXBE7bR1oBCACwbb/79VEtIeX1uJ5JXnfd0Jf6EHTkneF6VXhWNez7lYK1qh43
+sq8HYqFOLrhmxIgGeFOZ637JWV4tcszICaLJuO3LFSS1q2qN9a+srep5gCs+xiV
KIuGcVd+cnlP3r6uSUMh0odOWsgNoPqEYIlGIbYocEfZONHBYhijmxY3krwwZ7FH
ThLHv9bTmh6FIBBZGpT5URTa84MK73WLs6PiOEUsiXetctFlttZwUbffKLA46EHS
XmtVo29K6Qa4V+LpN7ktgWrLrEk0rzrj7vW3UAQiitBaBSYODxnHu56fzRYW8S7K
4QxZjSQCT0aGEeNiBhVisTLrkH8KW1spD88RABEBAAEAB/Yzca7yyP7ThIdcHwCf
NvuelBY1AYhfe4u8Ly/nmR0XijWw/0Qq0lBpXKxDs92dGF4/srWWVEqyLNsASJis
XsKiKwAdLP0h0+/AlGmCInx6hmlRrNbYiUVTDIxnjr1YX4vQzaof51J90b6DpD/C
d+s00zY7SRi5PkGRA81YnA1W20HTRPkYjnSLjfgEH96B2ayohYAdfBv1IBzfk20B
jl4+NFR7kbFYPwf1C7nWdIzPcmKwN+ealrpTJek5xcLCcteO/+oqzmL+wuRa/xbz
ZnWBk04wfiJtA4RUL6sovvERKvuQxNa6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NJzMLr5Oca1MQlXnZON5y2uaTKWYx
29Gfd4VEj6q6Si+4IRqXrJaPS5daYb7RArxcklok1Cx/nfnVlizvrSdCNCUpai/9
vGNi2sRA6Ob8gENTRQ==
=xK/H
-----END PGP PUBLIC KEY BLOCK-----
例RSAキーペア(他のものPGP鍵ペア):
-----BEGIN RSA PRIVATE KEY-----
MIICWgIBAAKBgHx5XHa3LjiugtNq2xkd0oFf2SdsJ04hQYLoeRR3bqAei3Gc+PSy
AvynCIh/03JCvBsUHaCe8BwjwaTYrpq5QunGo/wvIzvx2d3G9dlrpOIFLiatZYOf
h07+CkSfaRXhBUKkul/gU87WPhKEcbnPDJS10uD1HqLsHfSKLNitGOf7AgElAoGA
ENIhQHmedlzFkjEI2eFveURNxw6dhxlANEjtxH7XmRjiaUyQWGsVKQ+nNQpa2Bbb
JkD9FbSc/OI8wz/gPmwP9eJN29CriebhaV3ebM1L1gbb5r7Vf/D/6rxB0BG/h2lA
jyZWEZrV/Gi9ZCaw/J+IUu1pAskKid84yHphvszywCUCQQDigrtr+cVkwkUsxOGd
B378yQCroXmybAD7FQHwVslafuFfTHkaMQSU/ZZLVY1ioMs1VVzzq/vOu0RstZOY
AfHFAkEAjK3mIWdG4JOM44/SrDkACNatsMtXKOi4K3SlXu9ie6ikXPD+GSZ+bWCX
GstFaXr9cHRvZPF3qYtK+j2N9UXOvwJBALeoRO/DmSFDkgifoixLRF5CHDgiD6Vs
U9J/vGIBLaNSHoSe3rtKVr3+CyhTNF3Oe0AABi1bA4UGioGn+yFNr0UCQBbQF3sJ
1CRq9ECT3PlVWfOYbzFtFQ2NhaYul1uAw9yzkEZsROF73SZ+XbFRZTOzFFds08su
E2eaDCiUXDWcnhECQQCRUQn2huHlssj8kt35NAVwiHCNfaeSQ5tiDcwfOywA4YXl
Q+kpuWq5U3V8j/9/n7pE/DL0nXEG/3QpKHJEYV5T
-----END RSA PRIVATE KEY-----
-----BEGIN PUBLIC KEY-----
MIGGAoGAfHlcdrcuOK6C02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