Hex Strings


The hex-strings vocabulary provides words for converting between byte sequences and hexadecimal strings. It also provides predicate words for checking if a string is a valid hexadecimal string for various checksums.

Converting between byte sequences and hexadecimal strings:
bytes>hex-string ( bytes -- hex-string )

hex-string>bytes ( hex-string -- bytes )


Check if a string is a known checksum hex string:
md5-string? ( str -- ? )

sha1-string? ( str -- ? )

sha224-string? ( str -- ? )

sha256-string? ( str -- ? )

sha384-string? ( str -- ? )

sha512-string? ( str -- ? )