<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[Linux系统自带的密码生成器——mkpasswd,Linux字符串md5. ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Sat, 24 Jun 2017 05:00:14 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	Linux字符串md5,注意得echo -n ,-n就是去空格，如果不加 -n则会有空格输出：<br/>echo -n re0XY6?ki&#124;md5sum&#124;awk &#039;&#123;print $1&#125;&#039;<br/>270899509597f424b626b14034622c89<br/>------------------------------------------------------------<br/>mysql&gt; select md5(&quot;re0XY6?ki&quot;);<br/>+----------------------------------+<br/>&#124; md5(&quot;re0XY6?ki&quot;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#124;<br/>+----------------------------------+<br/>&#124; 270899509597f424b626b14034622c89 &#124;<br/>+----------------------------------+<br/>1 row in set (0.00 sec)<br/>=============================================<br/><br/>Linux系统有一个自带的生成密码的命令，这个命令异常强悍，可以帮助我们生成随机密码，要知道，现在的黑客无处不在，想一个难猜的密码还真的下点功夫，有了这个密码生成工具，就可以为管理员节省好多脑细胞啊，下面看下这个命令的使用：<br/>安装mkpasswd的包：<br/>yum install -y expect<br/><br/>[root@CentOS6 game-dir]# mkpasswd<br/><br/>JI&gt;s64tyv<br/><br/>[root@centos6 game-dir]# mkpasswd -l 12<br/><br/>e/Hwyw8Kied6<br/><br/>[root@centos6 game-dir]# mkpasswd -l 12 -d 3<br/><br/>zas4Ery+5K8l<br/><br/>[root@centos6 game-dir]# mkpasswd -l 12 -c 4<br/><br/>ff9bT7b&#125;npmM<br/><br/>[root@centos6 game-dir]# mkpasswd -l 12 -C 4<br/><br/>x3TwqtSKh&#125;2T<br/><br/>[root@centos6 game-dir]# mkpasswd -l 12 -s 4<br/><br/>px&#125;[aO8cF&#039;:8<br/><br/>[root@centos6 game-dir]# mkpasswd -l 18 -s 4 -c 4 -C 4<br/><br/>;.8zW3dGiwmb@dyWO&amp;<br/><br/>下面来简单介绍一下常用的参数含义：<br/><br/>usage: mkpasswd [args] [user]<br/><br/>where arguments are:<br/><br/>-l #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(length of password, default = 7)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;指定密码的长度，默认是7位数<br/><br/>-d #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(min # of digits, default = 2)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;指定密码中数字最少位数，默认是2位<br/><br/>-c #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(min # of lowercase chars, default = 2)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;指定密码中小写字母最少位数，默认是2位<br/><br/>-C #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(min # of uppercase chars, default = 2)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;指定密码中大写字母最少位数，默认是2位<br/><br/>-s #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(min # of special chars, default = 1)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;指定密码中特殊字符最少位数，默认是1位<br/><br/>-v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(verbose, show passwd interaction)<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这个参数在实验的时候报错，具体不知道。
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Linux系统自带的密码生成器——mkpasswd,Linux字符串md5. ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>