Small script to generate a random password. Works on Linux with busybox, haven't tested on GNU.
hexdump -e '"%02x""\n"' /dev/random | tr -d '\n' | dd count=32 bs=1 2>/dev/null; echo
</dev/urandom tr -dc '[:alnum:]' | head -c 32 ; echo
And a stronger version,
</dev/urandom tr -dc '[:alnum:][:punct:]' | head -c $(( $RANDOM % 32 + 32 )) ; echo
https://git.zx2c4.com/password-store/tree/src/password-store.sh#n539
@torresjrjr I've been using pass until recently. It strictly depends on coreutils, and I'm on Alpine Linux, which kind of defeats the point of Alpine. And there's not that much to gain for me when using pass anyway, since it's just GPG encrypted files and I already know how to manage such :)