❔ Windwos Form MD5 Login system ?
In an application that I created as a windwos form, I need to enable users to log in with MYSQL. User passwords in MYSQL are encrypted with MD5. User cannot login using md5 encryption in Windwos Form. How can I do it ?
13 Replies
1) md5 is not encryption
2) you should never encrypt passwords, only hash them
3) md5 is not a secure hashing algorithm for passwords
besides that, you'll need to explain what you mean by the user can't log in
passwords are like this but when I want to login.
Username: admin
password: admin
it gives an error when i type
but md5
Username: admin
To password: 21232f297a57a5a743894a0e4a801fc3 [Convert a string to a MD5 hash]
when i type this shape it accepts
so what do you think you could add to your login code to hash the password correctly?
Md5
there you go
I don't understand
MD5 Class (System.Security.Cryptography)
Represents the abstract class from which all implementations of the MD5 hash algorithm inherit.
also, i will reiterate that unless this is just a practice/school project you should not be using MD5 for this
Since the data in the website is like this, I have to use it. Do you have any other suggestions?
I'm doing it using user data in a ready data
Password Storage - OWASP Cheat Sheet Series
Website with the collection of all the cheat sheets of the project.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.with passwords you want to salt and hash them, ive done this recently with one of my applications using bcrypt
this generating the hashed password with salt added
this is verifying the hashed from the database against the entered password to verify they are a match
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.