Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xtyxtyx/randombytes

Function than generates random bytes at given length.
https://github.com/xtyxtyx/randombytes

Last synced: about 2 months ago
JSON representation

Function than generates random bytes at given length.

Awesome Lists containing this project

README

        

## Usage

A simple usage example:

```dart
import 'package:randombytes/randombytes.dart';

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

or:

```dart
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][tracker].

[tracker]: https://github.com/xtyxtyx/randombytes/issues