High quality, simple random password generator

前端 未结 27 2584
渐次进展
渐次进展 2020-12-22 17:06

I\'m interested in creating a very simple, high (cryptographic) quality random password generator. Is there a better way to do this?

import os, random, strin         


        
27条回答
  •  难免孤独
    2020-12-22 17:12

    XKCD has a great explanation of why what you think are strong passwords aren't.

    http://xkcd.com/936/

    To anyone who understands information theory and security and is in an infuriating argument with someone who does not (possibly involving mixed case), I sincerely apologize. - Randall Munroe

    And if you don't understand the math behind what this illustration is explaining, don't try writing anything that should be cryptographically secure, because it won't be. Just put the mouse down and step away from the keyboard.

提交回复
热议问题