PROPHET/OS
NAME
passwd: writes the line into /system/config/shadow
SYNOPSIS
passwd <name> <password>
DESCRIPTION
Writes the line into /system/config/shadow.
The hash comes from the same code that later checks it. That is the whole reason this is one command and not a hash tool plus an editor: two implementations of one hash are two chances to disagree, and they disagree at the moment somebody cannot log in.
EXAMPLE
$ passwd --help passwd <name> <password> writes the line into /system/config/shadow the hash comes from the same code that later checks it