Generate random PINs in bash/zsh

A quick and secure way to generate numerical PINs. The only dependency is coreutils so it should work on almost any system out-of-the-box.

$ shuf --random-source=/dev/urandom -i 0-9 -r -n 6 | paste -sd ''
659010

Leave a Reply

Your email address will not be published.

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.