2007-09-20 18:09:08 -04:00
|
|
|
USING: help.markup help.syntax kernel math sequences quotations
|
2008-03-08 03:51:26 -05:00
|
|
|
crypto.common byte-arrays ;
|
2008-01-14 16:42:21 -05:00
|
|
|
IN: crypto.md5
|
2007-09-20 18:09:08 -04:00
|
|
|
|
|
|
|
HELP: stream>md5
|
|
|
|
{ $values { "stream" "a stream" } { "byte-array" "md5 hash" } }
|
|
|
|
{ $description "Take the MD5 hash until end of stream." }
|
2008-03-08 03:51:26 -05:00
|
|
|
{ $notes "Used to implement " { $link byte-array>md5 } " and " { $link file>md5 } ". Call " { $link hex-string } " to convert to the canonical string representation." } ;
|
2007-09-20 18:09:08 -04:00
|
|
|
|
2008-03-08 03:51:26 -05:00
|
|
|
HELP: byte-array>md5
|
|
|
|
{ $values { "byte-array" byte-array } { "checksum" "an md5 hash" } }
|
|
|
|
{ $description "Outputs the MD5 hash of a byte array." }
|
2007-09-20 18:09:08 -04:00
|
|
|
{ $notes "Call " { $link hex-string } " to convert to the canonical string representation." } ;
|
|
|
|
|
|
|
|
HELP: file>md5
|
|
|
|
{ $values { "path" "a path" } { "byte-array" "byte-array md5 hash" } }
|
|
|
|
{ $description "Outputs the MD5 hash of a file." }
|
|
|
|
{ $notes "Call " { $link hex-string } " to convert to the canonical string representation." } ;
|