Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ammario/crand
Golang cryptographic randomness utility
https://github.com/ammario/crand
Last synced: 25 days ago
JSON representation
Golang cryptographic randomness utility
- Host: GitHub
- URL: https://github.com/ammario/crand
- Owner: ammario
- License: mit
- Created: 2016-05-04T01:12:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-10T23:27:35.000Z (over 7 years ago)
- Last Synced: 2024-05-21T05:54:26.322Z (6 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crand
A library that proxies crypto/rand with diverse simple functions.Values returned exclude the maximum.
[Godoc](https://godoc.org/github.com/ammario/crand)
## Example
Generate a secure, random token
```go
fmt.Printf("Token: %v", crand.String(20))
```## Disclaimer
I have no formal education in cryptography.
The randomness is derived from crypto/rand and I've implemented safeguards against modulus bias.