bryant / argon2rs

The pure-Rust password hashing library running on Argon2.
MIT License
174 stars 19 forks source link

Less restrictive convenience hashing functions #35

Open phil-k8r opened 6 years ago

phil-k8r commented 6 years ago

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.