]> git.ipfire.org Git - thirdparty/shadow.git/commit
libmisc, man: Drop old check and advice for complex character sets in passwords
authorAlejandro Colomar <alx@kernel.org>
Fri, 24 Mar 2023 17:23:59 +0000 (18:23 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 27 Apr 2023 07:16:08 +0000 (09:16 +0200)
commit0c4fa6ee0af0c9d52c583d1cea6b655fb95724c1
treeaf1261f82e38153b920003211b4ba20c3c413f45
parent7078ed1e0b8a197aa9e5103986bce927abef87a4
libmisc, man: Drop old check and advice for complex character sets in passwords

Add the relevant XKCD to the passwd(1) manual page.  It already explains
most of the rationale behind this patch.

Add also reference to makepasswd(1), which is a good way to generate
strong passwords.  Personally, I commonly run `makepasswd --chars 64` to
create my passwords, or 32 for passwords I need to type interactively
often.

The strength of a password is an exponential formula, where the base is
the size of the character set, and the exponent is the length of the
password.  That already shows why long passwords of just lowercase
letters are better than short Pa$sw0rdZ3.  But an even more important
point is that humans, when forced to use symbols in a password, are more
likely to do trivial substitutions on simple passwords, which doesn't
increase strength, and can instead give a false sense of strength, which
is dangerous.

Closes: <https://github.com/shadow-maint/shadow/issues/688>
Link: <https://xkcd.com/936/>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
libmisc/obscure.c
man/passwd.1.xml