bmd5.pp 510 B

123456789101112131415161718192021222324252627
  1. {$mode objfpc}
  2. uses
  3. timer,md5;
  4. const
  5. Strings: array[1..7] of string = (
  6. '',
  7. 'a',
  8. 'abc',
  9. 'message digest',
  10. 'abcdefghijklmnopqrstuvwxyz',
  11. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
  12. '12345678901234567890123456789012345678901234567890123456789012345678901234567890'
  13. );
  14. var
  15. i,j : integer;
  16. s : string;
  17. begin
  18. start;
  19. for i:=1 to 500000 do
  20. for j:=low(Strings) to high(Strings) do
  21. MDString(Strings[j],MD_VERSION_5);
  22. stop;
  23. writeln;
  24. end.