Message195104
With 8 lowercase characters, the entropy is 41.7 bits, whereas it is only 35.9 bits for 6 characters with uppercase and lowercase letters. >>> math.log(26+26+10+1, 2) * 6 # (a-zA-Z0-9_) x 6 35.8636795409995 >>> math.log(26+10+1, 2) * 6 # (a-z0-9_) x 6 31.256720193773702 >>> math.log(26+10+1, 2) * 8 # (a-z0-9_) x 8 41.6756269250316 My changeset improves the entropy, it is now higher than with the old charset. I don't know if it is enough or not to be safe. systemd creates a temporary directory per service. Linux 3.11 will add a new O_TMPFILE to open() which allow to create a file with no name. Using the flag should help to workaround the race condition attack. See #18673 for O_TMPFILE. | |
| Date | User | Action | Args | | 2013-08-13 23:35:48 | vstinner | set | recipients: + vstinner, rhettinger, amaury.forgeotdarc, ncoghlan, pitrou, eric.araujo, neologix, python-dev, planet36 | | 2013-08-13 23:35:48 | vstinner | set | messageid: <1376436948.93.0.961224995139.issue12015@psf.upfronthosting.co.za> | | 2013-08-13 23:35:48 | vstinner | link | issue12015 messages | | 2013-08-13 23:35:48 | vstinner | create | | |