I have a legacy SQL app that has been migrated to SQL 2008 on the backend. The front end apps use a classic VB6 DLL that connects to the database and verifies a username and pw are correct, and if so it passes back credential info.
The problem is that the passwords have never been encrypted, and the DLL is legacy. I am looking at writing a webservice to replace the DLL, but there are several older apps that will still use the DLL for quite some time.
I mention this because I want to provide some level of security on the data, either through hashing, encryption, or an internal algorithm. If I provide this at the field level it will likely break the legacy code.
Since the legacy code calls a stored procedure I am thinking I could read the encrypted value, then unencrypt in the stored procedure (or encrypt the user typed password) and compare the two values. I will have to do the same with the new web-service.
Is there a way to encrypt an unencrypted value in a stored procedure and then save it encrypted. I would also need a way to read the value and then compare it to what was passed so I would have to encrypt the type value and compare the two or unencrypt the saved value and compare the two.
I do could do this through code with my own algorithm, but I don’t consider that encryption or hashing, and more of a way to hide the password as something else to keep the honest person honest.
Thoughts
Jim
The problem is that the passwords have never been encrypted, and the DLL is legacy. I am looking at writing a webservice to replace the DLL, but there are several older apps that will still use the DLL for quite some time.
I mention this because I want to provide some level of security on the data, either through hashing, encryption, or an internal algorithm. If I provide this at the field level it will likely break the legacy code.
Since the legacy code calls a stored procedure I am thinking I could read the encrypted value, then unencrypt in the stored procedure (or encrypt the user typed password) and compare the two values. I will have to do the same with the new web-service.
Is there a way to encrypt an unencrypted value in a stored procedure and then save it encrypted. I would also need a way to read the value and then compare it to what was passed so I would have to encrypt the type value and compare the two or unencrypt the saved value and compare the two.
I do could do this through code with my own algorithm, but I don’t consider that encryption or hashing, and more of a way to hide the password as something else to keep the honest person honest.
Thoughts
Jim