I'm creating an auth keyfile for mongodb and one way to do that is using: /usr/bin/openssl rand -base64 741 > $TMPFILE
I want to understand what is going on, I understood everything minus the meaning of three numbers 741
I couldn't find an explanation in the documentation.
It means it will use 741 bytes of random data and base64 it.
Example with
-hex 20
as this will be 40 long.It is explained in the man page. See
num
at the end and the description: