cl-base58

2015-01-13

An implementation of base58 for Common Lisp

Upstream URL

github.com/eudoxia0/cl-base58

Author

Fernando Borretti

License

MIT
README

This library implements the base58 encoding algorithm. It's basically base64 but with a smaller alphabet (58, as in the title) that doesn't include similar looking characters, among other things.

The implementation is essentially a carbon copy of Gavin Andresen's Python code.

Usage

cl-user> (base58:encode "this is a test")
"jo91waLQA1NNeBmZKUF"
cl-user> (base58:decode "jo91waLQA1NNeBmZKUF")
"this is a test"

Tests

The encoded strings in the tests were created with Andresen's unmodified code, so they are correct. Probably.

License

Copyright (c) 2014 Fernando Borretti (eudoxiahp@gmail.com)

Licensed under the MIT License.

Dependencies (1)

  • prove

Dependents (1)

  • GitHub
  • Quicklisp