thanx for concern
actually I am developing an e-commerce application in asp.net using c#.
During user registration process, password will be taken from textbox and will be stored in SQL Server DB. i want to do encryption while storing password in DB and algorithm is required here.
password will be taken from textbox and will be stored in SQL Server DB. i want to do encryption while storing password in DB and algorithm is required here
Generally, storing a password is bad.
Most people hash the password and store that in the database.
When the user logs in you take the password they give, hash it, and compare this hash to what is stored in the database.
Encrypting the password means you can decrypt it (recover it), encryption is 2-way.
Hashing the password is 1-way, you can't recover the password from the hash.
The SHA family are the most common (current) algorithms. http://en.wikipedia.org/wiki/SHA-1[^]
Have you tried looking at the Crytopgraphy Application Block within Enterprise Library. Why not download Entperise Library from MSDN and give it a go. Personally, I find the Crytopgraphy Application Block within Enterprise Library to contain more useful routines than what is available within in the .net framework.
I haven't had much luck but I was wondering if you would know a good way to take a value assgine it to x then draw a line with a random slope through that point and take two random points off that line.