base32 2.2.0 copy "base32: ^2.2.0" to clipboard
base32: ^2.2.0 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'
}
28
likes
160
points
233k
downloads

Publisher

verified publisheryuli.dev

Weekly Downloads

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