Skip to content
pubscout

fast_base58

0.2.2, released 4 months ago by c0mm4nd.com

Fast Base58 encoding and decoding library supporting Bitcoin and Flickr alphabets.

WASM-ready
$ flutter pub add fast_base58
Source repository

What it does

fast_base58 provides a fast implementation of Base58 encoding and decoding for Dart and Flutter. It natively supports both the Bitcoin/IPFS alphabet and the Flickr alphabet.

AI-written summary of version 0.2.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to encode or decode Base58 strings for cryptographic or blockchain purposes.
  • You require high performance for Base58 operations across multiple platforms including the web.

Skip it when

  • You only need standard Base64 encoding which is already provided by Dart's core libraries.

Strengths

  • Fast implementation optimized for performance.
  • Supports multiple alphabets like Bitcoin/IPFS and Flickr.
  • Works across all major platforms including Android, iOS, Web, Windows, macOS, and Linux.

Weaknesses

  • Limited utility outside of Base58 encoding and decoding.
  • Does not include other broader cryptographic helpers.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'dart:convert';
import 'package:fast_base58/fast_base58.dart';

main() {
  var encodedStr = Base58Encode(utf8.encode('bitcoin'.codeUnits));
  print(encodedStr);

  var decodedRaw = Base58Decode('4jJc4sAwPs');
  print(utf8.decode(decodedRaw));
}

Alternatives

Packages that do the same job and could replace fast_base58.

  • bs58

    Alternative library for Base58 encoding and decoding.

  • base_codecs

    Provides a broader collection of various base encoding algorithms.