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.
(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.