base58 1.0.1
base58: ^1.0.1 copied to clipboard
Simple base58 library to convert between ints and their base58 representation
example/base58.dart
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <timklge@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return - Tim Kluge
* ----------------------------------------------------------------------------
*/
import 'package:base58/base58.dart';
void main(){
final base58 = new Base58Codec();
final num = 8716238992;
print("Number: ${num}");
print("Base58: ${base58.encode(num)}");
print("Base58 decoded: ${base58.decode(base58.encode(num))}");
}