generate magic cookies for xauth
Generate a random number
Generate a random number, using the contents of a file as a seed for the randomness
Generate a random number, using a specific number of bytes from a file as a seed for the randomness
Print the details of the randomness used, such as the origin and seed for each source
mcookie generates a 128-bit random hexadecimal number for use with the X authority system. Typical usage:
xauth add :0 .
The "random" number generated is actually the MD5 message digest of
random information coming from one of the sources
(2) system call, /dev/urandom
, or the libc
, in this preference order. See also the option --file
Use this file
as an additional source of randomness (for example/dev/urandom
is '-', characters are read from standard input.
Read from file
of bytes. This option is meant to be used when reading additional randomness from a file or device.
argument may be followed by the multiplicative suffixes KiB=1024, MiB=1024*1024, and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is optional, e.g., "K" has the same meaning as "KiB") or the suffixes KB=1000, MB=1000*1000, and so on for GB, TB, PB, EB, ZB and YB.
Inform where randomness originated, with amount of entropy read from each source.
Display help text and exit.
Print version and exit.
It is assumed that none of the randomness sources will block.
For bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>.
command is part of the util-linux package which can be downloaded from
Linux Kernel Archive