title: DCPcrypt Hashing German Umlauts
body: <p>I am using DCPcrypt and SHA512 to hash strings.</p>
  
  <p>I am using the version by Warren Postma <a href="https://bitbucket.org/wpostma/dcpcrypt2010">https://bitbucket.org/wpostma/dcpcrypt2010</a> </p>
  
  <p>It is working fine. However it failes with german umlauts like ä, ö, ü and probably other unicodes.</p>
  
  <p>I am using the library like this:</p>
  
  <pre><code>function TForm1.genhash(str: string): string;
  var
    Hash  : TDCP_sha512;
    Digest: array[0..63] of byte;
    i: integer;
    s: string;
  begin
    s:= '';
    hash  := TDCP_sha512.Create(nil);
    if hash&lt;&gt;nil then
    begin
      try
        Hash.Init;
        Hash.UpdateStr(str);
        Hash.Final(Digest);
  
        for i:= 0 to length(Digest)-1 do
          s:= s + IntToHex(Digest[i],2);
  
      finally
        hash.free;
      end;
  
    end;
    Result := s;
  end;
  </code></pre>
  
  <p>When i input the letter <code>ä</code> i expect the output to be:</p>
  
  <blockquote>
    <p>64868C5784A6004E675BCF405F549369BF607CD3269C0CAC1711E21BA9F40A5ABBF0C7535856E7CF77EA55A072DD04AA89EEA361E95F497AA965309B50587157</p>
  </blockquote>
  
  <p>I checked it with those sites:
  <a href="http://hashgenerator.de/">http://hashgenerator.de/</a>
  <a href="http://passwordsgenerator.net/sha512-hash-generator/">http://passwordsgenerator.net/sha512-hash-generator/</a></p>
  
  <p>However i get:</p>
  
  <blockquote>
    <p>1A7F725BD18E062020A646D4639F264891368863160A74DF2BFC069C4DADE04E6FA854A2474166EED0914B922A9D8BE0C89858D437DDD7FBCA5C9C89FC07323A</p>
  </blockquote>
  
  <p>So my question is:
  How can i use the DCPcrypt library to generate hashes for german umlauts? THanks</p>