Thema: Delphi MD5 Hash

Einzelnen Beitrag anzeigen

dominikkv

Registriert seit: 30. Sep 2006
Ort: Gundelfingen
1.109 Beiträge
 
Delphi 2007 Professional
 
#1

MD5 Hash

  Alt 13. Aug 2007, 22:42
hi

für ein HTTP.Get brauche ich einen MD5-Hash.
In der Dokumentation der Webseite steht folgendes:
Zitat:
The algorithm for generating this token is as follows:
token := md5(md5(password) + timestamp)

The md5() function takes a string and returns the 32-byte ASCII hexadecimal representation of the MD5 hash, using lower case characters for the hex values. The '+' operator represents concatenation of the two strings.
den Timestamp hab ich, jetzt fehlt nur noch die richtige Hash-Funktion.
Ich hab mir mal die DEC angeschaut und folgendes versucht:
THash_MD5.CalcBinary(THash_MD5.CalcBinary(Passwort) + TimeStamp)); Leider führt das nicht zum Erfolg...
Hat jemand eine Idee?

mfg.Dominik
Dominik
  Mit Zitat antworten Zitat