https://github.com/kizzycode/crypto_api_osrandom
An interface to the OS' secure random number generator for `crypto_api`
https://github.com/kizzycode/crypto_api_osrandom
Last synced: about 2 months ago
JSON representation
An interface to the OS' secure random number generator for `crypto_api`
- Host: GitHub
- URL: https://github.com/kizzycode/crypto_api_osrandom
- Owner: KizzyCode
- Created: 2019-03-10T15:23:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T01:10:56.000Z (almost 3 years ago)
- Last Synced: 2025-03-06T17:52:31.033Z (3 months ago)
- Language: Rust
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE BSD 2-CLAUSE.md
Awesome Lists containing this project
README
[](https://docs.rs/crypto_api_osrandom)
[](https://opensource.org/licenses/BSD-2-Clause)
[](https://opensource.org/licenses/MIT)
[](https://crates.io/crates/crypto_api_osrandom)
[](https://crates.io/crates/crypto_api_osrandom)
[](https://ci.appveyor.com/project/KizzyCode/crypto-api-osrandom)
[](https://deps.rs/crate/crypto_api_osrandom/0.2.0)# crypto_api_osrandom
Welcome to `crypto_api_osrandom` 🎉## About
This crate implements access to your operating system's cryptographically secure random number
generator via [`crypto_api`](https://github.com/KizzyCode/crypto_api).## APIs used
The following native APIs are used:
- macOS/iOS: `SecRandomCopyBytes` from the security framework
- FreeBSD/OpenBSD/NetBSD: `arc4random_buf` (which does not use ARC4 anymore but a secure PRF like
[ChaCha20](https://cr.yp.to/chacha.html))
- Windows: `CryptGenRandom` with `PROV_RSA_FULL` as provider
- Linux: `getrandom` for glibc versions >= 2.25 or `/dev/urandom` for ancient distributions