Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.