Skip to content

A library for encoding and decoding base58-formatted strings

License

Notifications You must be signed in to change notification settings

Silicon-Ally/base58

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base58

Note: While a variant of base58 is used in Bitcoin and parts of this library take inspiration from that C++ implementation, this package has nothing to do with cryptocurrency.

GoDoc CI Workflow

base58 is simple, zero-dependency Go library that implements a base 58 encoding scheme. The 58 characters it uses are:

123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz

This may or may not be the same set or ordering of characters as other base 58 encoding packages, make sure to double-check if you require interoperability. Generally, these characters were chosen to remove ambiguity (e.g. 0 vs O vs o, I vs l vs L) and general complications posed by non-alphanumerics in various contexts when using base 64 encodings.

When would I want to use this?

This encoding is useful when you want something more compact than a hexadecimal encoding, but without standard base64's + and /, which can be problematic in user-facing web contexts (e.g. URLs). Similarly, URL-safe base64 variants are more annoying to double click, as - stops the selection.

In short, you might want something like this in contexts where your encoded data may appear in a URL, or you expect a user to manually copy and paste the encoded data.

Contributing

Contribution guidelines can be found on our website.

About

A library for encoding and decoding base58-formatted strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages