1
0
Fork 0
bin/htdigest.sh

9 lines
121 B
Bash
Raw Permalink Normal View History

2015-12-11 10:29:22 +00:00
#!/bin/sh
user=$1
realm=$2
pass=$3
hash=`echo -n "$user:$realm:$pass" | md5sum | cut -b -32`
echo "$user:$realm:$hash"