Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-02-23 | Promote mcookie | Rob Landley | |
2019-02-23 | Cleanup mcookie. | Rob Landley | |
2019-02-23 | Here's an 'mcookie' implementation for toybox. | Isaac Dunham | |
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. |