base_x 2.0.1 copy "base_x: ^2.0.1" to clipboard
base_x: ^2.0.1 copied to clipboard

Fast base encoding / decoding of any given alphabet dart implementation library.

example/base_x_example.dart

import 'dart:typed_data';

import 'package:base_x/base_x.dart';

void main() {
  var base58 =
      BaseXCodec('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz');

  var hash = Uint8List.fromList([
    14,
    251,
    24,
    220,
    202,
    235,
    97,
    232,
    85,
    229,
    109,
    188,
    53,
    146,
    43,
    36,
    246,
    238,
    110,
    55,
    202,
    163,
    160,
    123,
    169,
    35
  ]);

  print(base58.encode(hash));

  print(base58.decode('TcASfmyoFiNobNaCHeiPMkWgGmovoxk1sqk'));
}
6
likes
130
pub points
86%
popularity

Publisher

unverified uploader

Fast base encoding / decoding of any given alphabet dart implementation library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on base_x