2007-09-20 18:09:08 -04:00
|
|
|
USING: help.markup help.syntax kernel math sequences quotations
|
2008-01-11 00:48:04 -05:00
|
|
|
math.private ;
|
|
|
|
|
IN: crypto.common
|
2007-09-20 18:09:08 -04:00
|
|
|
|
|
|
|
|
HELP: hex-string
|
|
|
|
|
{ $values { "seq" "a sequence" } { "str" "a string" } }
|
|
|
|
|
{ $description "Converts a sequence of values from 0-255 to a string of hex numbers from 0-ff." }
|
|
|
|
|
{ $examples
|
2008-03-11 20:51:58 -04:00
|
|
|
{ $example "USING: crypto.common io ;" "B{ 1 2 3 4 } hex-string print" "01020304" }
|
2007-09-20 18:09:08 -04:00
|
|
|
}
|
|
|
|
|
{ $notes "Numbers are zero-padded on the left." } ;
|
|
|
|
|
|
|
|
|
|
|