Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xtyxtyx/randombytes
- Owner: xtyxtyx
- License: mit
- Created: 2019-10-23T10:26:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-23T10:35:38.000Z (about 5 years ago)
- Last Synced: 2024-01-11T12:54:12.217Z (12 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/randombytes
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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