02-25-2010, 07:44 AM
str decimal=0xff
out decimal
or
str hex="0xff"
int decimal=val(hex)
More examples
str hex.decrypt(8 "ff 70 1e 4b") ;;easiest way to fill str with binary data specified as hex bytes
outb hex hex.len
for(_i 0 hex.len) out hex[_i]
and
str s="ABCD"
s.encrypt(8 s "" 1)
out s
out decimal
or
str hex="0xff"
int decimal=val(hex)
More examples
str hex.decrypt(8 "ff 70 1e 4b") ;;easiest way to fill str with binary data specified as hex bytes
outb hex hex.len
for(_i 0 hex.len) out hex[_i]
and
str s="ABCD"
s.encrypt(8 s "" 1)
out s