简体   繁体   中英

php mcrypt - decrypting and encrypting files?

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...

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM