/Base-Encoder

Converts an integer number to any base (base 2, base 16, etc.) based on what characters should be used (a-z, A-Z & 0-9, etc.)

Primary LanguageVisual BasicMIT LicenseMIT

Base-Encoder

Converts an integer number to any base (base 2, base 16, etc.) based on what characters should be used (a-z, A-Z & 0-9, etc.)

Usage:

  1. Fire open the program.
  2. In the Variables field, enter whatever characters should be used in the conversion.
  3. In the Number field, enter the starting number to convert.
  4. After pressing "Encode", the outputted number will display underneath.

Examples:

Converting an integer to binary:

  1. Enter 01 in the Variables field (since binary is either 0 or 1).
  2. Enter the desired number into the Number field. In this case, we want to convert 73 to binary. So we will enter 73.
  3. 1001001 should be the result.

Converting an integer to hexadecimal:

  1. Enter 0123456789ABCDEF in the Variables field.
  2. Enter the desired number into the Number field. In this case, we want to convert 49 to hex. So we will enter 49.
  3. 31 should be the result.

Converting an integer to base 36:

  1. Enter 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ in the Variables field.
  2. Enter the desired number into the Number field. In this case, we want to convert 305 to base 36. So we will enter 305.
  3. 8H should be the result.