randombytes 0.1.1 copy "randombytes: ^0.1.1" to clipboard
randombytes: ^0.1.1 copied to clipboard

This library contains function to generate random bytes at given length.

Usage #

A simple usage example:

import 'package:randombytes/randombytes.dart';

main() {
  print('${randomBytes(20)}');
}
copied to clipboard

or:

import 'package:randombytes/randombytes.dart';

main() {
  print('${randomBytes(20, secure: true)}');
}
copied to clipboard

Note that with [secure] enabled [randomBytes] is about 200~300 times slower.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
40
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.18 - 2025.04.02

This library contains function to generate random bytes at given length.

Repository (GitHub)

License

MIT (license)

More

Packages that depend on randombytes