Posts

Showing posts with the label Password generator.

Password Generator (Python)

Image
  In this blog: Why write a password generator? Random or secrets? Randbits(). Dissecting the script. Why write a password generator? *Automation* Writing your own password generator script is like having a tool in your technological toolkit and allows you to be less dependant on those weak passwords you think up when creating an account on a new website.  Having a script lets you automate this repetitive task.  Random or secret? The random module in Python lets you compose a pseudo-random sequence from a set of strings or an alphabet that you set.  What's not so good about this is that a pseudo-random string is deterministic.  This means if you set a random seed on your machine, this module will give the same string on your machine and for anyone else who is using the same seed.  In other words, the random module is a very effective tool to generate random sequences and assign random values to strings for cases that are not sensitive.  On the other ...