Skip to content

Less restrictive convenience hashing functions#35

Open
phil-k8r wants to merge 2 commits intobryant:masterfrom
phil-k8r:master
Open

Less restrictive convenience hashing functions#35
phil-k8r wants to merge 2 commits intobryant:masterfrom
phil-k8r:master

Conversation

@phil-k8r
Copy link
Copy Markdown

@phil-k8r phil-k8r commented Apr 4, 2018

Argon2::hash() accepts &[u8] as password and salt.
argon2d_simple() and argon2i_simple() accept &str as password and salt
and convert them to &[u8].

Instead of the conversion, argon2d_simple() and argon2i_simple() could accept
types that implement AsRef<[u8]> or &[u8] directly.

phil-k8r added 2 commits April 4, 2018 23:12
Accept types that implement AsRef<u8>
instead of &str as password and salt.
Make types of `password` and `salt` independent of each other and
accept `Unsize`d types.
FauxFaux added a commit to FauxFaux/argon2min that referenced this pull request Oct 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant