Skip to content

password-hash: avoid salt.as_ref() in PasswordHasher::hash_password_simple #529

Description

@tarcieri

When passing a Salt or SaltString to PasswordHasher::hash_password_simple, it's presently necessary to call salt.as_ref() as the salt parameter is &'a str.

It should be possible to switch it to &'a impl AsRef<str> to allow simply passing &salt instead. However, that's a breaking change that should be bundled with other changes in the next release.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions