php mcrypt 的安装和运用
<h3 style="color: black; text-align: left; margin-bottom: 10px;">php mcrypt 的安装和<span style="color: black;">运用</span></h3>
<h3 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">1、</span>关于 php mcrypt(摘自百度百科,维基百科没找着?)</h3> mcrypt 是php里面<span style="color: black;">要紧</span>的加密支持扩展库,linux环境下该库在默认<span style="color: black;">状况</span>下不开启。window环境下,PHP>=5.3,默认开启mcrypt扩展。<h3 style="color: black; text-align: left; margin-bottom: 10px;">mcrypt简单介绍</h3>PHP程序员们在编写代码程序时,除了要<span style="color: black;">保准</span>代码的高性能之外,还有一点是非常<span style="color: black;">要紧</span>的,那<span style="color: black;">便是</span>程序的安全性<span style="color: black;">保证</span>。PHP除了自带的几种加密函数外,还有功能更全面的PHP加密扩展库Mcrypt和Mhash。其中,Mcrypt扩展库<span style="color: black;">能够</span>实现加密解密功能,<span style="color: black;">便是</span>既能将明文加密,<span style="color: black;">亦</span><span style="color: black;">能够</span>密文还原。<h3 style="color: black; text-align: left; margin-bottom: 10px;">支持的算法和加密模式</h3>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Mcrypt库支持20多种加密算法和8种加密模式,<span style="color: black;">详细</span><span style="color: black;">能够</span><span style="color: black;">经过</span>函数mcrypt_list_algorithms()和mcrypt_list_modes()来<span style="color: black;">表示</span></p>
<h3 style="color: black; text-align: left; margin-bottom: 10px;">加密算法</h3>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Mcrypt支持的算法有:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">cast-128 gost rijndael-128 twofish arcfour</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">cast-256 loki97 rijndael-192 saferplus wake</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">blowfish-compat des rijndael-256 serpent xtea</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">blowfish enigma rc2 tripledes</p>
<h3 style="color: black; text-align: left; margin-bottom: 10px;">加密模式</h3>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Mcrypt支持的加密模式有:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">cbc cfb ctr ecb ncfb</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">nofb ofb stream</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这些算法和模式在应用中要以常量来<span style="color: black;">暗示</span>,写的时候加上前缀MCRYPT_和MCRYPT_MODE_来<span style="color: black;">暗示</span>,</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">如下面Mcrypt的资源链接:</p><a style="color: black;"><span style="color: black;">http://</span><span style="color: black;">mcrypt.sourceforge.net/</span></a>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> (mcrypt官网)</p> <a style="color: black;"><span style="color: black;">https://www.</span><span style="color: black;">php.net/manual/zh/mcryp</span><span style="color: black;">t.requirements.</span></a>php
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> (PHP官方文档教程)</p> <a style="color: black;"><span style="color: black;">http://</span><span style="color: black;">pecl.php.net/package/mc</span><span style="color: black;">rypt</span></a>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> (安装压缩包下载)</p>
<h3 style="color: black; text-align: left; margin-bottom: 10px;">mac php7.2 安装mcrypt扩展</h3>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">brew install libmcrypt</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">brew install mhash</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">brew install mcrypt</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic4.zhimg.com/80/v2-9e2ccd2a8636503a4f19a8ae5291a74b_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic3.zhimg.com/80/v2-5c9b6b77f27bc756dbb89d51e76d2e5a_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
谷歌网站排名优化 http://www.fok120.com/ 论坛的成功是建立在我们诚恳、务实、高效、创新和团结合作基础上,我们要把这种精神传递下去。 i免费外链发布平台 http://www.fok120.com/ 你的话语如春风拂面,让我感到无比温暖。 感谢您的精彩评论,为我带来了新的思考角度。 软文发布论坛开幕式圆满成功。 http://www.fok120.com
页:
[1]