Be careful, the code below is codepage dependent. TStrings.GetTextStr
does not inspect the codepage of each string and simply moves the
characters into a common buffer. Fast, but the question is: are you
using the hash to compare two string lists that are binary equivalent or
two string lists t
On Thu, 4 Jul 2019 18:13:44 +0200, José Mejuto
wrote:
>El 04/07/2019 a las 18:13, James Richters escribió:
>> Thanks you!
>>
>> That got me on the right path.
>> Here's the working sample:
>>
>> Hash := Md5Print(MD5String(MyStringlist.Text));
>>
>
>Warning! That's platform dependent code due
El 04/07/2019 a las 18:13, James Richters escribió:
Thanks you!
That got me on the right path.
Here's the working sample:
Hash := Md5Print(MD5String(MyStringlist.Text));
Warning! That's platform dependent code due the new line sequences.
--
___
[fpc-pascal] MD5 Hash of StringList
On Thu, 4 Jul 2019 11:33:02 -0400, "James Richters"
wrote:
>I'm trying to figure out how to make an MD5 Hash from an entire StringList.
> I am referencing the documentation here:
>https://wiki.freepascal.org/hash
>
>and I see how
On Thu, 4 Jul 2019 11:33:02 -0400, "James Richters"
wrote:
>I'm trying to figure out how to make an MD5 Hash from an entire StringList.
> I am referencing the documentation here:
>https://wiki.freepascal.org/hash
>
>and I see how to make an MD5 Hash from a File, or from a single string, but I