There are use cases where one might want to create a password hash outside of the request. The rodauth-model gem currently calls this method in the #password= setter. The rodauth-rails gem is also now calling this method in Active Record fixtures, to more easily support both bcrypt and argon2 along with a potential password pepper.
Thanks for the patch. This seems fine to me. It wasn't private for a particular reason, just no obvious reason to make it public. I'll test and merge later today.
There are use cases where one might want to create a password hash outside of the request. The rodauth-model gem currently calls this method in the
#password=
setter. The rodauth-rails gem is also now calling this method in Active Record fixtures, to more easily support both bcrypt and argon2 along with a potential password pepper.