Encoded text
Decoded text
= 0; $o--) { if ($pos+$n+$o >= $len) { printf("??"); } else { printf("%02x", ord(substr($decoded, $pos+$n+$o, 1))); } } } else { for ($o = 0; $o < $wordsz; $o++) { if ($pos+$n+$o >= $len) { printf("??"); } else { printf("%02x", ord(substr($decoded, $pos+$n+$o, 1))); } } } echo " "; } else { for ($o=$wordsz-1; $o >= 0; $o--) { echo " "; } echo " "; } } echo " |"; for ($n = 0; $n < 16; $n += 1) { if ($pos + $n < $len) { $c = substr($decoded, $pos+$n, 1); if ( (ord($c) >= 0x20 && ord($c) <= 0x7e) || (ord($c) >= 0xa0 && ord($c) <= 0xfe)) { echo htmlentities($c, ENT_NOQUOTES); } else { echo "."; } } else { echo " "; } if ( ($n > 0) && ($n < 15) && ($wordsz > 1) && (($n+1) % $wordsz == 0) ) { echo "|"; } } echo "|\n"; } } ?>
Original text
Enter text to base64 encode/decode
Filename if downloading:
">
Encoding options:
> Split base64 encoded lines, length:
">
Decoding options (ignored when downloading):
>Hexdump decoded data, wordsize:
>Byte (8 bit)
>Word (16 bit)
>Long (32 bit)
>Double long (64 bit)
Byte order
>Little Endian
>Big Endian
This script was written in PHP by
Thomas Horsten
. Click
here
for more stuff.
Copyright © 2000-2006 Thomas Horsten. Released under the GPL, click
here
for source.