Tool to decrypt / encrypt using Base 36 (Alphanumeric) Cipher, ideal base for encoding any alphanumeric string by a number (and vice versa) with the usual 36 characters (26 letters and 10 digits).

Base 36 Cipher - dCode

Tag(s) : Mathematics, Cryptography

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!

A suggestion ? a feedback ? a bug ? an idea ? *Write to dCode*!

Base 36 is an arithmetic base composed of 36 symbols, generally the 36 alphanumeric characters comprising the 26 letters of the alphabet `ABCDEFGHIJKLMNOPQRSTUVWXYZ` and the 10 digits `0123456789`. Any number (decimal, in base 10) can be converted to base 36, and any word (consisting of alphanumeric characters) can be converted to base 10.

Base 36 encryption uses the principle of arithmetic base change (conversion from base 36 to base 10).

__Example:__ To code the 3 characters `B36` in base 36 using the symbols `0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`, first convert each character to base 10: `B=11`, `3=3`, `6=6` and apply the base change formula: $ 11 \times 36^2 + 3 \times 36^1 + 6 \times 36^0 = 14370 $

It is possible to use 2 sets of symbols for base 36: either digits then letters

Alphabet#1 | 0 | 1 | 2 | 3 | … | 7 | 8 | 9 | A | B | C | D | … | X | Y | Z |

Index | 0 | 1 | 2 | 3 | … | 7 | 8 | 9 | 10 | 11 | 12 | 13 | … | 33 | 34 | 35 |

Or letters then digits

Alphabet#2 | A | B | C | D | … | X | Y | Z | 0 | 1 | 2 | 3 | … | 7 | 8 | 9 |

Index | 0 | 1 | 2 | 3 | … | 23 | 24 | 25 | 26 | 27 | 28 | 29 | … | 33 | 34 | 35 |

The decryption of the base 36 consists of the conversion of *coded* numbers from the base 10 to the base 36.

__Example:__ Decode the message `527198`. $ 527198 = 11 \times 36^3 + 10 \times 36^2 + 28 \times 36^1 + 14 \times 36^0 $ so `[11,10,28,14]` in base 36 and `11=B`, `10=A`, `28=S`, `14=E`. The plain message is `BASE`.

The coded message consists of decimal numbers whose length is proportional to the length of the word.

The same word is coded with the same number, so the numbers corresponding to the common words appear coded several times.

Round values in decimal:

Base10 | Base36 |
---|---|

100 | 2S |

1000 | RS |

10000 | 7PS |

100000 | 255S |

1000000 | LFLS |

1000000000 | GJDGXS |

Round values in base36:

Base36 | Base10 |
---|---|

10 | 36 |

100 | 1296 |

1000 | 46656 |

10000 | 679616 |

100000 | 60466176 |

1000000 | 176782336 |

dCode retains ownership of the "Base 36 Cipher" source code. Except explicit open source licence (indicated Creative Commons / free), the "Base 36 Cipher" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Base 36 Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Base 36 Cipher" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!

Reminder : dCode is free to use.

The copy-paste of the page "Base 36 Cipher" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!

Exporting results as a .csv or .txt file is free by clicking on the *export* icon

Cite as source (bibliography):

*Base 36 Cipher* on dCode.fr [online website], retrieved on 2024-06-16,

base,36,alphanumeric,alphabet,letter,digit

https://www.dcode.fr/base-36-cipher

© 2024 dCode — El 'kit de herramientas' definitivo para resolver todos los juegos/acertijos/geocaching/CTF.

Feedback