base32 2.1.3 copy "base32: ^2.1.3" to clipboard
base32: ^2.1.3 copied to clipboard

Base32 Encoder and Decoder for Dart, primarily used for One Time Password secrets.

example/example.dart

import 'package:base32/base32.dart';

void main() {
  // Encode a hex string to base32
  base32.encodeHexString('48656c6c6f21deadbeef'); // -> 'JBSWY3DPEHPK3PXP'

  // base32 decoding to original string.
  base32.decode('JBSWY3DPEHPK3PXP'); // -> '48656c6c6f21deadbeef'
}
26
likes
160
points
152k
downloads

Publisher

verified publisheryuli.dev

Weekly Downloads

Base32 Encoder and Decoder for Dart, primarily used for One Time Password secrets.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on base32