aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/fsck.c
diff options
context:
space:
mode:
authorIsaac Dunham <ibid.ag@gmail.com>2019-02-23 16:38:35 -0600
committerRob Landley <rob@landley.net>2019-02-23 16:38:35 -0600
commit609c3e3cd3d83c02490ac26753bb78a63e0e48b5 (patch)
treed3e258fcc8e909c3a5e7623a45f5a1224e1d91c1 /toys/pending/fsck.c
parent42af2e52e771dd7bf8be6fd1119520d492bb4b3f (diff)
downloadtoybox-609c3e3cd3d83c02490ac26753bb78a63e0e48b5.tar.gz
Here's an 'mcookie' implementation for toybox.
mcookie simply prints out 16 bytes of entropy in hexadecimal; it is typically used as the source for the "MIT magic cookies" that X11 uses for "secure" connections. The only implementation I know of is in util-linux; the problems with its documented behavior motivated me to write an alternate implementation. Specifically, getting 128 bytes from the kernel and finding the MD5 sum is not a sane PRNG, especially when only 16 bytes are needed.
Diffstat (limited to 'toys/pending/fsck.c')
0 files changed, 0 insertions, 0 deletions