nonce 0.1.0 copy "nonce: ^0.1.0" to clipboard
nonce: ^0.1.0 copied to clipboard

outdated

A utility class with a single method to generate random alphanumeric strings.

nonce #

pub package

A utility class with a single method to generate alphanumeric nonces.

Usage #

import 'package:nonce/nonce.dart';

nonce contains a single utility class, [Nonce], with one method: String generate([int length = 32]).

generate() has an optional parameter, [length], to specify the length of the generated string.

print(Nonce.generate()); // Osp54up7WU6P3U97Jz92p9j892n9LP7z

print(Nonce.generate(64)); // LDwpr1H74qm894jbd15Lj63wF5RUL07r4L9XOY7zVMz7fLbBCXa68Y6oPw0N9XgV

generate() does not rely on Base64 encoding, instead it generates ASCII character codes directly.

11
likes
0
pub points
90%
popularity

Publisher

verified publisherjamesalex.dev

A utility class with a single method to generate random alphanumeric strings.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on nonce