Using ring or something else to encrypt and salt passwords

I want to build a user registration and encrypt the used password with a salt. I need a short example on how to do this. Is there a well written Git repo for this or in a Rust cookbook?

Or if I'm using ring or something else is this nothing more than encrypt the password and add a salt?

You probably want a password hash. For examples you can see the crate docs, e.g. argon2 - Rust.


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.