add functions for generating passwords

and salted hashes. #11256