⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htpasswd-sha1.pl

📁 最新apache的源代码
💻 PL
字号:
#!/usr/bin/perl -wuse strict;## Utility which takes a username and password# on the command line and generates a username# sha1-encrytped password on the stdout.# # Typical useage:# 	./htpasswd-sha1.pl dirkx MySecret >> sha1-passwd## This is public domain code.  Do whatever you want with it.# It was originally included in Clinton Wong's Apache 1.3.6 SHA1/ldif# patch distribution as sample code for generating entries for# Apache password files using SHA1.use MIME::Base64;  # http://www.cpan.org/modules/by-module/MIME/use Digest::SHA1;  # http://www.cpan.org/modules/by-module/MD5/if ($#ARGV!=1) { die "Usage $0: user password\n" }print $ARGV[0], ':{SHA}', encode_base64( Digest::SHA1::sha1($ARGV[1]) );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -