php mcrypt - decrypting and encrypting files?

纵饮孤独 提交于 2019-12-24 08:23:47

问题


I've been looking around for a php class that allows the decryption / encryption of pgp-encrypted csv files. Everything I've found has been primarily geared towards passwords. I'm assuming the principles are essentially the same, but was wondering if someone here can point me in the direction of a class specifically intended to receive files via FTP and decrypt them, as well as encrypt files and FTP them elsewhere? It's my first foray into encryption, so hoping that someone can point me to something useful? I'll keep googling, but would really appreciate some finger-pointing...


回答1:


mcrypt isn't designed for handling PGP-encrypted files. Best to use GnuPG for them.




回答2:


For the PGP portion, why not just pipe to gpg. Trying to do the encryption and other related tasks in PHP is going to be quite slow, if you can even find a class to do it.



来源:https://stackoverflow.com/questions/2393203/php-mcrypt-decrypting-and-encrypting-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!