热衷于使用 PHP 加密并使用 Outlook Express 解密
我正在尝试创建这种系统:
- 用户编写一封包含机密数据的邮件,
- 我用 PHP 管理它们,将它们发送给管理员,
- 只有管理员应该能够打开该邮件
通过这种方式实现这似乎是可能的:
- 使用与 PHP 和非对称公钥兼容的 Outlook Express 加密(DES、3DES、RC"(各种位))来加密邮件。
- 使用拥有非对称私钥的帐户使用 Outlook Express 解密邮件
但是,我完全不知道不知道我应该使用什么样的证书,如何获得它(我想至少获得一个免费的证书来进行一些测试),并且我不确定这个基础设施是否有效。
I'm trying to create this kind of system:
- a user writes a mail with confidential data in it
- I manage them with PHP, sending them to the administrator
- only administrator should be able to open that mail
Achieving this seems to be possible this way:
- encrypt the mail using an Outlook Express-compatible encryption (DES, 3DES, RC" (various bit)) with PHP and an asymmetric pubblic key.
- decrypt the mail using Outlook Express with an account that owns the asymmetric private key
However, I totally don't know what kind of certificate should I use, how to get it (I'd like to get at least a free one to do some testing) and I'm not sure this infrastructure would work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,您可以使用 PGP。它或多或少是加密邮件的标准,并且有一个用于服务器端的免费开源实用程序。在客户端中,您的用户将必须安装一个插件,其中有多个插件可供选择。
我不知道 GnuPG for php 的任何本机绑定,但您可以使用
shell_exec
通过命令行执行它更新:看起来有人甚至为此写了一个教程:http://devzone.zend.com/article/1265
You can use PGP for this. It's more or less the standard of encrypting mails and there is a free open source utility for the server side of things. In the client, your users will have to install a plugin of which there are several to pick from.
I don't know of any native bindings of GnuPG for php, but you can execute it over the command line, using
shell_exec
Update: Looks like someone even wrote a tutorial on this: http://devzone.zend.com/article/1265