Learn to Code via Tutorials on Repl.it!

← Back to all posts
How to hash and salt passwords c#
Bunnytoes

Hashing and salting passwords

I decided to make this tutorial because I am using this for a big project and so you don't have to search online forever, to start add these two using tags to the top

ok, now add this at the top before the main method

ok, this will be the part that computes your hash, now to generate the salt you do this

alright, this is almost all we have to do, now we put the generation code in the main method

that is it for the tutorial and this is one of many ways to hash passwords but this was the easiest I could find online :D
I hope you enjoy and hope this was helpful!

Voters
cuber1515
Bunnytoes
Comments
hotnewtop
Bunnytoes

@Cuber1515 this may help you understand better

cuber1515

@Bunnytoes thanks.

cuber1515

@Bunnytoes also on the spotlight page for your scrambler I forked I can't respond because for some reason I'm in education mode, but I didn't put that since I forked from you so that's whatever you put. Actually could tell sushri that it's a fork since I can't tell him.

Bunnytoes