Home | Mirror | Search

Chapter 10. 第三方工具

Table of Contents

1. htpasswd
1.1. CRYPT
1.2. MD5
1.3. SHA
2. htdigest
3. md5sum
4. sha1sum

1. htpasswd

$ sudo apt-get install apache2-utils
		

1.1. CRYPT

neo@master:~$ htpasswd -d -n neo.chen
New password:
Re-type new password:
neo.chen:Tyr60pyBFo0ng

			

1.2. MD5

neo@master:~$ htpasswd -m -n neo.chen
New password:
Re-type new password:
neo.chen:$apr1$CbZkN...$QzT7LwjRpQCKr4IkryM3Z.

			

1.3. SHA

neo@master:~$ htpasswd -s -n neo.chen
New password:
Re-type new password:
neo.chen:{SHA}iol5jPCHjje7ZYmuHDa52KA2J1s=
			
comments powered by Disqus