HELP: Howtwo create a passwd-suitable hash for usage with psswd -H 0?
RW
rwmaillists at googlemail.com
Thu Feb 18 14:52:49 UTC 2016
On Thu, 18 Feb 2016 14:16:24 +0100
O. Hartmann wrote:
> Hello out there,
>
> I run into a problem and digging for a solution didn't work out.
>
> Problem: I need a string that reflects the hashed password for the
> usage with
>
> passwd -H 0
Did you mean -h?
> I think the procedure is using
>
> sha512 -s Password
>
> and using this output for further processing, but how?
It's not as simple as that, password hashes are usually salted and
iterated. Salting means that the password is combined with a randomly
generated string stored in plaintext, which means that the password
doesn't hash to a fixed string.
I'm not sure exactly what you are trying to do, but crypt(3) may be of
help.
More information about the freebsd-current
mailing list