Further fixes to the printhelp function

This commit is contained in:
Ze'ev Schurmann 2024-01-05 02:05:57 +02:00
parent e84a8d534b
commit e3020ea497
1 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@ function printhelp {
version=$(tail -1 $0) version=$(tail -1 $0)
echo "Usage: " echo "Usage: "
echo echo
echo " $0 hashtype salt password iterations {raw/full}" echo " $0 hashtype salt password iterations {raw/full/rawrull}"
echo echo
echo "Hashtypes: md5, sha1, sha224, sha256, sha384, sha512, blake2b" echo "Hashtypes: md5, sha1, sha224, sha256, sha384, sha512, blake2b"
echo " blake2s, sha3_224, sha3_256, sha3_384, sha3_512" echo " blake2s, sha3_224, sha3_256, sha3_384, sha3_512"
@ -18,14 +18,14 @@ function printhelp {
echo " The higher the integer the more secure but at the" echo " The higher the integer the more secure but at the"
echo " cost of time." echo " cost of time."
echo echo
echo "{raw/full}: This is optional. By default you will get a hash" echo "{raw/full/rawfull}: This is optional. By default you will get a"
echo " string followed by a new line. If you do not want" echo " hash string followed by a new line. If you do"
echo " the new line, say to use in a variable, then use" echo " not want the new line, say to use in a variable,"
echo " 'raw' to get just the hash in hex. However if you" echo " then use 'raw' to get just the hash in hex."
echo " use 'full', you will get a string that can be used" echo " However if you use 'full', you will get a string"
echo " to input into a database with a new line at the end." echo " that can be usedto input into a database with a"
echo " Use 'rawfull' to return the string without the new" echo " new line at the end. Use 'rawfull' to return the"
echo " new line." echo " string without thenew line."
echo echo
echo "More about PBKDF2 hashing - https://en.wikipedia.org/wiki/PBKDF2" echo "More about PBKDF2 hashing - https://en.wikipedia.org/wiki/PBKDF2"
echo echo
@ -103,4 +103,4 @@ fi
exit 0 exit 0
#1.02 #1.03