How to base64 encode /dev/random or /dev/urandom?

后端 未结 7 1307
梦毁少年i
梦毁少年i 2020-12-25 10:06

cat /dev/urandom is always a fun way to create scrolling characters on your display, but produces too many non-printable characters.

Is there an easy wa

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-25 10:52

    You can do more interesting stuff with BASH's FIFO pipes:

    uuencode <(head -c 200 /dev/urandom | base64 | gzip)
    

提交回复
热议问题