trivial encoder by nn

BEGIN{for(RS=FS=_;i++<256;x="123456789ABCDEF")a[sprintf(f="%c",i)]=i}{for(n=7;n++<NF;)printf/^e/?"%02X":f,/^e/?a[$n]:16*index(x,$n)+index(x,$++n)
print$96}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page