https://github.com/tv42/entropy
Command-line utility to output random bytes aka entropy
https://github.com/tv42/entropy
Last synced: 4 months ago
JSON representation
Command-line utility to output random bytes aka entropy
- Host: GitHub
- URL: https://github.com/tv42/entropy
- Owner: tv42
- License: mit
- Created: 2021-02-10T21:37:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-10T21:41:41.000Z (over 4 years ago)
- Last Synced: 2025-01-30T08:13:51.770Z (6 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eagain.net/go/entropy -- Output random bytes aka entropy
`entropy` is like a saner, quicker, easier, safer and more memorable `dd if=/dev/urandom bs=1 count=BYTES`
(Plus it'll even work even where `/dev/urandom` doesn't exist, by using the `getrandom` syscall.)
```
go install eagain.net/go/entropy
```Examples:
```
$ entropy 32 >secret
$ entropy 32
entropy: stdout is a terminal, refusing to output binary
$ entropy 32 | zbase32-encode
k6dsmurfj3he3qrmdc99z1pzdrm4ipgqmzkk9cbp4w8zubfkg3ko
```