PHP mcrypt 使用类?
我对此很陌生。当我认为一个好的教程会做得更好时,我试图理解 PHP.net 上的 mcrypt 手册页。所以我进行了搜索,但没有任何实质性内容。
我还尝试了使用 mcrypt 使用 2 个函数执行加密和解密的示例之一,但它给出了“密钥大小对于该算法来说太大”的警告。
谁能给我写一个双向类来使用 mcrypt 进行加密/解密,以便我能够理解该库?谢谢!
I'm pretty new at this. Tried to make sense of the manual page for mcrypt at PHP.net when I thought a good tutorial would do a better job. So I searched yet without anything substantial.
I also tried one of the examples of using mcrypt to perform the encryption and decryption with 2 functions, but it gives a warning of "Size of key is too large for this algorithm".
Can anyone please write me a two-way class to do the encryption / decryption using mcrypt so I can make sense of the library? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此线程:PHP Mcrypt - 加密/解密文件
仅供参考,要求别人为你做你的工作是非常不酷的。至少表现出努力。我们来这里是为了提供帮助,而不是成为奴隶。
See this SO thread: PHP Mcrypt - Encrypting / Decrypting file
FYI, it's very uncool to ask people to do your work for you. At least show an effort. We're here to help, not be slave labor.