Score:2

What is the meaning of the three numbers 741 in "openssl rand -base64 741"?

ca flag

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.

Score:7
cn flag

It means it will use 741 bytes of random data and base64 it.

Example with -hex 20 as this will be 40 long.

$ /usr/bin/openssl rand -hex 20
51b40b347dfccefa9b4f8a13d36c4564760c2f82

It is explained in the man page. See num at the end and the description:

SYNOPSIS
       openssl rand [-help] [-out file] [-rand file...]  [-writerand file]
       [-base64] [-hex] num

DESCRIPTION
   This command generates num random bytes using 
   cryptographically secure pseudo random number generator (CSPRNG).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.