Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TIdCoderMD5 help please!

Status
Not open for further replies.

Ruggie

Programmer
Aug 2, 2003
46
US
I'm having trouble using TIdCoderMD5.
(Under Indy Misc tab on BC++B6)

Theres little documentation on this component, I've checked the help file and the indy site for more info on why I can't get this to work and I'm still at a loss. (Been workign on this for 3 days)

Heres what I've got:
AnsiString temp;
MD5->Key = "test";
temp = MD5->CodeString("pizza");
LabeledEdit1->Text = temp;
and in LabelEdit1 I get "" (NULL, NIL, NOTHING!)
CodeString is the only function that accepts an ansistring and returns an ansistring.

I also tried this:
temp = MD5->CompletedInput();
-produces random junk every time
temp = MD5->GetCodedData();
-produces ""

After two days I was beginning to think it was unfinished or something, then I ran this:

MD5->FillSamples(Memo1->Lines);
in the help file it says FillSamples is a test function, and when I ran it I got normal MD5 checksum output on the samples but without using the key or any data I entered.

If you have an idea please let me know!!!

Thanks,
Ruggie

For those who wanted to know what the sample output was, here it is:
====
d41d8cd98f00b204e9800998ecf8427e

a
0cc175b9c0f1b6a831c399e269772661

abc
900150983cd24fb0d6963f7d28e17f72

message digest
f96b697d7cb7938d525a2f31aaf161d0

abcdefghijklmnopqrstuvwxyz
c3fcd3d76192e4007dfb496cca67e13b

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
d174ab98d277d9f5a5611c2c9f419d9f

12345678901234567890123456789012345678901234567890123456789012345678901234567890
57edf4a22be3c955ac49da2e2107b67a
====
I've checked all those values to other md5 programs, they are correct but are not using a key for any encryption.
 
Bump!
Come one, hasn't anyone used MD5 at all?
What about CRC?
Or UU or Base64?

I just have data I need to verify on each end.
If both checksums match then I know everything will be the same.

Recommend something, please :)

- Ruggie
 
I've not used MD5 but I know that on the Companion Tools CD (also available from Borland.com) there is a library with CRC. Again, I've never used it so I can't say how well it works.

James P. Cottingham

There's no place like 127.0.0.1.
There's no place like 127.0.0.1.
 
I've tried TurboPowers LockBox and had some trouble getting it to work correctly inside the compiler. I did everything listed in their help file and the compiler just wouldn't accept it.

Thanks for responding :)

If I figure out what was giving me trouble with lockbox then I'll post it here for everyone else.

Did someone already post a tutorial on lockbox?

-Keith
 
I've downloaded and redownloaded lockbox, every time I install it there is missing files.

Like LbCipher.hpp and LbUtils.hpp and more
I've downloaded the help file and it just explains how it works and how to use it, but not anything about problems installing it or running it.

Got any suggestions?

-Ruggie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top