Hash Passwords

S

Shapper

Hello,

I created a login system and I my passwords are being hashed.

I need to check if everything is working so I need to generate some
hashed passwords to replace the actual passwords I have in this moment
in my database. How can I do this?

I have the following data in my database:
USER PASSWORD
Mike London
Marie Book
Katie NoNe

I want to hash the 3 passwords so I can change my database and test my
login system. How can I do this?

The login system has this:
....
Dim ticket As FormsAuthenticationTicket = New
FormsAuthenticationTicket(1, tbusername.Text, DateTime.Now,
DateTime.Now.AddMinutes(30), True, reader.GetString(0),
FormsAuthentication.FormsCookiePath)
Dim hash As String = FormsAuthentication.Encrypt(ticket)
Dim cookie As HttpCookie = New
HttpCookie(FormsAuthentication.FormsCookieName, hash)

Thanks,
Miguel
 
B

Brock Allen

FormsAuthenticaiton has a HashPasswordForStoringInConfigFile API to help.
BTW, this is about the worst named API I've ever seen -- you can store those
hashed passwords anywhere... even in a database :)

Pass "SHA1" as the second param to the API.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top