使用php ssl加密大文件进行备份
我正在 g-zipping 并将我的数据库转储(使用 mysqldump )备份到 amazon S3 。 一切正常,但我还需要加密这个大压缩文件,以保护数据库中非常敏感的数据。
请帮忙,我真的迷路了。
提前致谢 :)
I'm g-zipping and backing-up my database dump (using mysqldump ) to amazon S3 .
all works fine, but i also need to encrypt this big-compressed file for securing the very- sensitive data within the database.
please help, i'm really lost here .
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,看看 Apress 的 Chris Snyder 和 Michael Southwell 撰写的 Pro PHP Security。它会告诉您有关加密所需的所有信息。那里有很多东西。
从那里您可以下载本书的源代码,并在第 6 章中查找名为 mcrypt.php 的文件。它还附带了一个示例实现。
祝你好运!如果它对您有用,请购买电子书或死树版本的文本。它的信息非常丰富,会教你很多东西!我与 Apress 或作者没有任何关系,我只是发现这本书非常有用的人。
First, have a look at Pro PHP Security by Chris Snyder and Michael Southwell from Apress. It will tell you all you need about encryption. There's a lot there.
From there you can download the source code for the book and look for a file called mcrypt.php in Chapter 6. It also comes with a sample implementation.
Good luck! And if it's useful to you, buy the ebook or dead tree version of the text. It's very informative and will teach you a lot! I'm not affiliated with Apress or the authors in any way, I'm just someone that found the book extremely useful.
谢谢马克。
在对你提到的“gpg”进行了简短的研究之后,我发现了一篇很好的文章,准确地解释了如何解决这个问题:
http://devzone.zend.com/article/1265
Thank Mark.
After a short goggling about the "gpg" you mentioned, i found good article explaining exactly how to solve the problem:
http://devzone.zend.com/article/1265