MD5 in VB.Net

  • Thread starter Thread starter glenner003
  • Start date Start date
G

glenner003

Hello all,

Since there is no implementation of the MD5 hashing algoritm in the .Net
compact framework, I tried to build one myself. I have done this succesfully
before in Delphi (using rfc1321), but I can't get it working in VB.Net.

I found several implementations of it for VB6.0 and ASP (v1), but I can't
port none of them to VB.Net. I have found a working C# implementation, but
that can't be ported to VB.Net either. It is the lack for some datatypes in
VB that is causing the most troubles (and ofcourse the lack of basic
functions as shl and shr that have been there since there where computers).

When making the decision to use either VB.Net or C# everybody yelled that
they where the same, everyting that can be build in C# can be build in VB
and visa versa. Now it seems that nothing is more false than this!

Has anyone succeeded in implementing MD5 in VB.Net (or any other hashing or
ecryption algoritm).

Kind regards,

Glenner003
 
Of course it is possible

shl shr can be achieved with << >> (prior to VB2003 you could achieve it
with division)

For uints just use ints

Unless the C# code is using unsafe code (not necessary for crypto) I doubt
it is untranslatable. There are crypto functions in the openetcf by the way.

You have a few options including:
1. Use the C# code as is (stick it in a class library/dll)
2. Use the VB newsgroup (or this one if you must) to say exactly where you
are having trouble
3. Use one of the many converters such as:
http://www.developerfusion.com/utilities/convertvbtocsharp.aspx

Cheers
Daniel
 
Daniel Moth said:
Of course it is possible

shl shr can be achieved with << >> (prior to VB2003 you could achieve it
with division)

For uints just use ints

Unless the C# code is using unsafe code (not necessary for crypto) I doubt
it is untranslatable. There are crypto functions in the openetcf by the way.

You have a few options including:
1. Use the C# code as is (stick it in a class library/dll)
2. Use the VB newsgroup (or this one if you must) to say exactly where you
are having trouble
3. Use one of the many converters such as:
http://www.developerfusion.com/utilities/convertvbtocsharp.aspx

Cheers
Daniel

Thank you for the quick response, I'll look into it.

Kind regards,

Glenner003
 
Back
Top