function

bin2hex . string . sncode

VERSIONlatest Converts binary data into hexadecimal representation

BIN2HEX

NAME

bin2hex - Converts binary data into hexadecimal representation

SYNOPSIS

bin2hex(string,uppercase = true)

PARAMETERS

string
A string written in binary
uppercase
It is set to true if the user wants the answer to be given in uppercase letters

RETURN

Returns the hexadecimal representation of the given string.

EXAMPLES

Note: In the following examples, the _ between the { should be removed to make it work.

in:  res={_{bin2hex("\n\ra\r\nb\rc\nd",true);}}.
out: res=0A0D610D0A620D630A64.

in:  res={_{bin2hex("\n\ra\r\nb\rc\nd",uppercase:false);}}.
out: res=0a0d610d0a620d630a64.

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>