I'm using pw to add users to a FreeBSD system and I'd like to use the -H option, e.g.,
pw add user userfoo -H pwfile
The man page says that I need to have a password "supplied already encrypted in a form suitable for writing directly to the password database."
So what's suitable? In particular, what kind of encryption algorithm should I use and what's the format of the file?