Convert VB6 Randomize to C#

Posted by Thomas G. Mayfield on Stack Overflow See other posts from Stack Overflow or by Thomas G. Mayfield
Published on 2009-09-08T22:34:45Z Indexed on 2010/06/15 14:12 UTC
Read the original article Hit count: 252

Filed under:
|
|

I'm writing a C# frontend to a legacy database that uses VB6 Rnd() and Randomize() methods for user password encryption. The encryption function is very simplistic and really not all that secure, but it's what all current passwords are stored with.

What I'd like to be able to do is authenticate legacy users from a C# application. I can write new encryption (or preferably hashing) code for VB6 so that all future users have a more secure password, and that can be duplicated in C#. But I don't want to require current users to have had their password reset before they can use the new frontend.

Is there any way I can reimplement that algorithm in C# so that it produces identical results to the legacy VB6 code?

© Stack Overflow or respective owner

Related posts about c#

Related posts about encryption