PHP mcrypt 使用类?

发布于 2024-08-26 16:46:44 字数 199 浏览 13 评论 0原文

我对此很陌生。当我认为一个好的教程会做得更好时,我试图理解 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

恏ㄋ傷疤忘ㄋ疼 2024-09-02 16:46:44

请参阅此线程: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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文