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

outdated

Function than generates random bytes at given length.

Usage #

A simple usage example:

import 'package:randombytes/randombytes.dart';

main() {
  print('${randomBytes(20)}');
}

or:

import 'package:randombytes/randombytes.dart';

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

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
30
pub points
3%
popularity

Publisher

unverified uploader

Function than generates random bytes at given length.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

More

Packages that depend on randombytes