Search for a tool
Base 58

Tool to encrypt / convert with base 58 composed of alphanumeric characters except 0,O,I,l to avoid reading errors.

Results

Base 58 -

Tag(s) : Arithmetics, Character Encoding

Share
Share
dCode and more

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!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Base 58' tool for free! Thank you!

Base 58

Base 58 Decoder


 








Base 58 Encoder


From a text-based message (ASCII)

 

From a number


Answers to Questions (FAQ)

What is Base58 cipher? (Definition)

Base 58 is an encoding system that converts binary data into a character string consisting of a specific set of 58 characters. In particular, base 58 generally uses the 62 alphanumeric characters (26 lowercase letters + 26 uppercase letters + 10 digits) but removing 0 (zero), O (uppercase letter o), I (letter i uppercase) and l (lowercase letter L) in order to limit potential reading errors (by a human or a machine).

How to encrypt using Base58 cipher?

The base 58 was created to code large integer numbers, like any base in arithmetic, it uses symbols for the digits. In base 58, by default, the 58 symbols are 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz

The correspondance table for Base58 is

IndexBase58IndexBase58IndexBase58IndexBase58
0 1122334
45566778
899A10B11C
12D13E14F15G
16H17J18K19L
20M21N22P23Q
24R25S26T27U
28V29W30X31Y
32Z33a34b35c
36d37e38f39g
40h41i42j43k
44m45n46o47p
48q49r50s51t
52u53v54w55x
56y57z

Encryption of a number is done by performing a change of basis.

Example: $ 1234_{10} = 21 \times 58^1 + 16 = \{21,16\}_{58} $ or NH using the symbols of base 58 (the 21st symbol is an N and the 16th symbol is an H).

To encrypt a message, it is necessary to first convert it into a large number, using an encoding table such as ASCII or Unicode.

How to decrypt Base58 cipher?

The decryption of Base 58 consists of a conversion of the message considered into base 58.

If the expected result is a number then convert base 58 to base 10 to obtain an integer.

Example: The message in base 58 38 corresponds to the calculation $ 2 \times 58 + 7 = 123 $ or 123 in base 10.

If the expected result is a message, then convert the base 58 to binary or hexadecimal and use the desired coding table (ASCII or Unicode) to obtain a plain message.

How to recognize a Base 58 ciphertext?

The message is composed of at most 58 distinct characters, and must not contain a digit 0 (zero), nor a letter I (capital i), nor a letter O (capital o) or letter l (lowercase L).

Base58 is commonly used in crypto applications, cryptocurrency wallet addresses (Bitcoin or Ripple) or URLs.

Any reference to Bitcoin or its inventor Satoshi Nakamoto or to any other cryptocurrency like Ripple is a clue.

What are the variants of Base 58?

The symbol alphabet used to code base 58 may be completely different from 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz.

A classic variant is 123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ (uppercase and lowercase inverted, used by Flickr) but many other alphabets, including deranged alphabets can be used.

Base58Check is an algorithm used by the Bitcoin Blockchain for BTC addresses which is based on Base58 adding modifiers such as a version number and a checksum.

Source code

dCode retains ownership of the "Base 58" source code. Except explicit open source licence (indicated Creative Commons / free), the "Base 58" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Base 58" 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 58" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.

Cite dCode

The copy-paste of the page "Base 58" 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 58 on dCode.fr [online website], retrieved on 2024-10-05, https://www.dcode.fr/base-58-cipher

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Base 58' tool for free! Thank you!


https://www.dcode.fr/base-58-cipher
© 2024 dCode — El 'kit de herramientas' definitivo para resolver todos los juegos/acertijos/geocaching/CTF.
 
Feedback