K085 / Encoding and decoding
Base58
A family of binary-to-text encodings using 58 alphanumeric symbols.
CRYPTOGRAPHY LAB / K085
Cryptography Lab · Base58
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
Base58 (Bitcoin alphabet, no checksum)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- A family of binary-to-text encodings using 58 alphanumeric symbols. Source document ↗
- Classification and reversibility
- Reversible transformation, not encryption; no security/confidentiality. Source document ↗
- Key or secret requirements
- No secret or key required. Source document ↗
- Operating principle and structure
- Big-integer radix conversion accumulates bytes into base-58 digits. Source document ↗
- Key size, block size and parameters
- Base58Check uses version byte to distinguish data types. Source document ↗
- Security strength and recommendation
- Replaced by Bech32 for SegWit address format. Source document ↗
- Known attacks and vulnerabilities
- Raw Base58 adds/verifies no checksum, weak error detection. Source document ↗
- Standards and certification
- Not defined as a dedicated IETF RFC standard. Source document ↗
- Typical uses
- Bitcoin/other cryptocurrency address/key encoding and Flickr URLs. Source document ↗
- Implementations, libraries and tools
- Base58/Base58Check libraries for Bitcoin networks. Source document ↗
- Decryption or decoding
- CLI -dc or library decode restores original bytes. Source document ↗
- Advantages
- Excludes visually ambiguous characters for easier reading/copying. Source document ↗
- Limitations and cautions
- Raw Base58 lacks checksum; cannot guarantee detection of corruption/typos. Source document ↗
- Distinguishing encryption, encoding and hashing
- Encoding, not encryption or key derivation. Source document ↗
Practical examples
Example
Represent bytes with base-58 alphabet; optionally add version/checksum for Base58Check. Receiver restores bytes and checks checksum if applicable.
Procedure
Prepare bytes, add version/checksum if Base58Check, convert radix. Validate characters/checksum and convert back to bytes. Not keyed encryption/decryption.
Scenario
Display legacy Bitcoin addresses/WIF keys as copyable text, use Base58Check for error reduction and consider Bech32 for modern SegWit addresses.
Pitfalls and alternatives
Raw Base58 without checksum cannot detect typos/tampering reliably and has no confidentiality. Use appropriate encryption/signatures/encoding; Base58Check or Bech32 for address/key display.