User name/Password authentication
-
I want to implement a username/password authentication system in my MFC/VC++6 application. the idea is to have username/password pairs and previlige level of the user stored encrypted in a file and while authenticating a user get, decrypt and match the info and set previlige level. Plz have any code? Thanks in advance. sohail
-
I want to implement a username/password authentication system in my MFC/VC++6 application. the idea is to have username/password pairs and previlige level of the user stored encrypted in a file and while authenticating a user get, decrypt and match the info and set previlige level. Plz have any code? Thanks in advance. sohail
How secure does it have to be ? MD5 code is easy to find on the web, you can store MD5 hashes of usernames and passwords, and apply the hash to what the user types in ( rather than have to unencrypt the records in your text file ). This has the advantage that a hash that cannot be reversed is more secure, so long as the hacker doesn't know what the algorithm is.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
I want to implement a username/password authentication system in my MFC/VC++6 application. the idea is to have username/password pairs and previlige level of the user stored encrypted in a file and while authenticating a user get, decrypt and match the info and set previlige level. Plz have any code? Thanks in advance. sohail
-
How secure does it have to be ? MD5 code is easy to find on the web, you can store MD5 hashes of usernames and passwords, and apply the hash to what the user types in ( rather than have to unencrypt the records in your text file ). This has the advantage that a hash that cannot be reversed is more secure, so long as the hacker doesn't know what the algorithm is.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
hi, I'm completely agree. It is the encryption for CISCO Routers for admin or to connect in remote rooters and create a WAN-Path (At least two years ago when I made the CCNAs). You can not uncrypt (at least not very easy) but you can always apply the encryption to whatever the user types and compare both encrypted logins or passwords
-------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?