Revised patch for more password entropy

Incorporated feedback re: character set limit and doc string style.  Thanks!  (Fixes #4751)