Einzelnen Beitrag anzeigen

marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#9

Re: Password hash in RDP files

  Alt 28. Mär 2007, 07:29
Hi Remko,

are you aware of the support functions HexToBin() and BinToHex()?

Delphi-Quellcode:
uses
  Classes;

var
  s: string;
  data: array of Byte;

begin
  s := 'CafeCafe';
  SetLength(data, Length(s) shr 1);
  HexToBin(@s[1], @data[0], Length(data));
  BinToHex(@data[0], @s[1], Length(data));
  ShowMessage('"' + s + '"');
end;
Regards
  Mit Zitat antworten Zitat