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'
}
22
likes
160
pub points
96%
popularity

Publisher

verified publisheryuli.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on base32