entropy

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 9 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL