/base_ascii_conversion

Convert words and phrases to binary or hexadecimal. Convert them back. Fun for the whole family.

Primary LanguagePerl

Convert words and phrases to binary or hexadecimal. Convert them back. Fun 
for the whole family.

Usage: binary.pl [--help|-h|-?] [--binary|-b <binary>] | [[--spaces|-s] --ascii|-a <ascii>]
Usage: hex.pl [--help|-?] [--hex|-h <hex>] | [[--spaces|-s] --ascii|-a <ascii>]

Usage explained:
  * provide one of text or binary/hex, get the other back
  * if you are getting back binary or hex, add or remove an -s to control 
    whether spaces appear every 8th or 2nd character. The default for 
    binary is to not show spaces, and for hex it is to show them.
    
Examples:
  $ binary.pl -a "This is nifty keen" -s
  01010100 01101000 01101001 01110011 00100000 01101001 01110011 00100000 01101110 01101001 01100110 01110100 01111001 00100000 01101011 01100101 01100101 01101110
  
  $ hex.pl -a "The things that wind up on github."
  54 68 65 20 74 68 69 6e 67 73 20 74 68 61 74 20 77 69 6e 64 20 75 70 20 6f 6e 20 67 69 74 68 75 62 2e