nonce
1.2.0, released 6 years ago by jamesalex.dev
Generate random alphanumeric strings and unique nonces in Dart.
WASM-ready
What it does
Nonce provides a static generator and object constructors to create random alphanumeric strings directly from ASCII character codes. It supports default, unique, and secure random variations.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to generate random alphanumeric strings or nonces.
- You require unique nonces tracked globally during execution.
- You need secure random string generation.
Skip it when
- You need advanced cryptographic primitives or hashing functions provided by other packages.
- You need universally unique identifiers (UUIDs) specifically.
Strengths
- Generates ASCII character codes directly without Base64 encoding overhead.
- Supports unique nonce tracking out of the box.
- Provides secure random options.
Weaknesses
- Limited functionality beyond random string and nonce generation.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:nonce/nonce.dart';
// Generate a string 32 characters long.
print(Nonce.generate());
// Generate a unique secure nonce
print(Nonce.secure());Alternatives
Packages that do the same job and could replace nonce.