在 codeigniter3 中包含并使用钠 AES 256 加密
我当前的项目基于 codeigniter3 和 PHP7.4 构建。现在我需要在我的项目中添加钠 AES 256 加密。我检查了大部分有关钠加密的文章。因为我的研究钠包含在 codeigniter4 中。但是从 codeigniter3 迁移到 codeigniter4 需要大量工作,而且这是一个实时项目。
所以我想在 codeigniter3 中包含钠加密和使用。我用谷歌搜索并尝试了很多文章,但没有找到在 codeigniter3 中包含钠加密的正确过程。
任何人都可以有这方面的经验吗?请提供一些相关信息。
提前致谢。
My current project built on codeigniter3 and PHP7.4 . Now i have a requirement to add sodium AES 256 encryption in my project. I have checked most of the articles on sodium encryption. As my research sodium included in codeigniter4. But moving from codeigniter3 to codeigniter4 needs a lot of work and it was a live project.
So i want to include sodium encryption and use in codeigniter3. I have google it and tried many of the articles but not found correct process to include sodium encryption in codeigniter3.
Can anyone have experience on this. Please provide some info on this.
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PHP 默认支持钠加密。无需安装或包含任何单独的库。
我还使用过 codeigniter3。它将支持不用担心。无需迁移到 codeigniter4。
找到以下代码示例
注意:ARGON2ID 仅支持 PHP 7.4 以上版本
用于创建加密密码:
用于验证密码:
PHP by default supports sodium encryption. No need to install or include any separate libraries.
I also worked with codeigniter3. It will support dont worry. No need to migrate to codeigniter4.
find the bellow code for example
Note : ARGON2ID supports Above PHP 7.4 version only
For create encrypted password:
For verify password :