Answer the question
In order to leave comments, you need to log in
How to display the hashed password correctly?
Good afternoon, I am writing a script in BASH. It has a function for generating a password, hashing it and exporting it to the database:
GPASS=$(pwgen -cns -1 12)
GHASH=$(echo -n "$GPASS" | md5sum)
Answer the question
In order to leave comments, you need to log in
GPASS=$(pwgen -cns -1 12)
GHASH=$(echo -n "$GPASS"|md5sum|cut -d " " -f1)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question