Skip to content
/ entropy Public

Command-line utility to output random bytes aka entropy

License

Notifications You must be signed in to change notification settings

tv42/entropy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Command-line utility to output random bytes aka entropy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages