MD5

Hi

Is there a way to Convert a String to a MD5 Encryped hash thing? like a function or some code would bevery helpful,

Thanks!
Invader_RMAsked:
Who is Participating?
 
ImbueConnect With a Mentor Commented:
You can use the Windows API for this. There is a good example of this here http://www.freevbcode.com/ShowCode.asp?ID=3779
0
 
Gary DewrellSenior Network AdministratorCommented:
Hi Invader_RM,
You can purchas NTSC to PAL converters. There are several on the market.
http://www.scancom.plus.com/en-gb/dept_3.html

God Bless
0
 
Gary DewrellSenior Network AdministratorCommented:
Invader_RM,

Sorry posted to the wrong screen. Long week! hehe
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
Invader_RMAuthor Commented:
Lol gdewrell, It's ok.

Imbue -> Yeh, I downloaded that yesterday, before I posted this Topic, but, I really didn't know where to put what I wanted in the code, to be converted to MD5, could you help me?

Also, sorry for low points, I havn't got many left, but I will rise it now a little bit.

Thanks!
0
 
ImbueCommented:
Using Windows API for MD5 isn't simple. If you are looking for something easier why not use a free thrid party component? There is a really easy to use one you can get from http://www.esquadro.com.br/md5bas.zip

It has a readme inisde of the zip that should get you started.
0
 
ImbueCommented:
Ok, looks like the link I posted above is dead. I'll help you use the other one that you already have downloaded. Inside of that zip go to CryptoAPI\CryptoAPI KCI\CryptKci_Dll then read the file call history.txt for information about installing the DLL.

Now to use it in your VB project add it to the references in the project. Then you have to make an object from it and then call it's method to do MD5.

Dim CryptoAPI As New clsCryptoAPI
Dim result As String

result = CryptoAPI.CreateHash("test", 1) 'MD5
Debug.Print result
0
 
Invader_RMAuthor Commented:
Thank you, its now all working,

thanks very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.