lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make readtxt2 work with pipes
[lcore.git]
/
fastmd5.pas
diff --git
a/fastmd5.pas
b/fastmd5.pas
index f0481a9f777baa7ee35d8cddc54ee3a167d26a5e..6455e5cff31b69b770fa3ad0f55552780224b0c6 100644
(file)
--- a/
fastmd5.pas
+++ b/
fastmd5.pas
@@
-8,7
+8,7
@@
unit fastmd5;
{
\r
pascal implementation of MD5
\r
\r
{
\r
pascal implementation of MD5
\r
\r
-written by Bas Steendijk
- steendijk@xs4all.nl
\r
+written by Bas Steendijk
\r
\r
based on RFC1321 - The MD5 Message-Digest Algorithm
\r
\r
\r
based on RFC1321 - The MD5 Message-Digest Algorithm
\r
\r
@@
-55,13
+55,13
@@
procedure md5finish(var state:tmd5state;var result);
\r
procedure getmd5(const data;len:longint;var result);
\r
\r
\r
procedure getmd5(const data;len:longint;var result);
\r
\r
-function md5tostr(const md5:tmd5):string;
\r
+function md5tostr(const md5:tmd5):
ansi
string;
\r
\r
implementation
\r
\r
\r
implementation
\r
\r
-function inttohex(val,bits:integer):string;
\r
+function inttohex(val,bits:integer):
ansi
string;
\r
const
\r
const
\r
- hexchar:array[0..15] of char='0123456789abcdef';
\r
+ hexchar:array[0..15] of
ansi
char='0123456789abcdef';
\r
begin
\r
inttohex := hexchar[val shr 4]+hexchar[val and $f];
\r
end;
\r
begin
\r
inttohex := hexchar[val shr 4]+hexchar[val and $f];
\r
end;
\r
@@
-284,10
+284,10
@@
begin
md5finish(t,result);
\r
end;
\r
\r
md5finish(t,result);
\r
end;
\r
\r
-function md5tostr(const md5:tmd5):string;
\r
+function md5tostr(const md5:tmd5):
ansi
string;
\r
var
\r
a:integer;
\r
var
\r
a:integer;
\r
- s:string;
\r
+ s:
ansi
string;
\r
begin
\r
s := '';
\r
for a := 0 to 15 do s := s + inttohex(md5[a],2);
\r
begin
\r
s := '';
\r
for a := 0 to 15 do s := s + inttohex(md5[a],2);
\r