function ByteToStr(T: array of byte): string;
const
Digits: array[0..15] of char =
('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
var
I: integer;
begin
Result := '';
for I := Low(T) to High(T) do Result := Result + Digits[(T[I] shr 4) and $0f] + Digits[T[I] and $0f];
end;
|