php mcrypt - 解密和加密文件?
我一直在寻找一个允许对 pgp 加密的 csv 文件进行解密/加密的 php 类。我发现的所有内容都主要针对密码。我假设原理本质上是相同的,但想知道这里是否有人可以向我指出一个专门用于通过 FTP 接收文件并解密它们,以及加密文件并将它们传输到其他地方的类的方向?这是我第一次涉足加密领域,所以希望有人能给我指出一些有用的东西?我会继续谷歌搜索,但真的很感激一些指点......
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 不是为处理 PGP 加密的文件而设计的。最好使用 GnuPG 。
mcrypt isn't designed for handling PGP-encrypted files. Best to use GnuPG for them.