Sunday, October 14, 2018

Password Generator

Introduction


It is important to protect your personal information online, and in this post i will help you to create a program to generate passwords for you.
The passwords will be random, so no one will be able to guess them!

Program

Let’s create a program to choose a random character for your password. I am using online python compiler Trinket, however you can use any IDE.

Checkpoints 

  • To choose a random character, always use "import random" module.
  • A password isn’t very secure if it only contains letters. Add some numbers and special characters. Moreover you can also use uppercase as well as lowercase letters.


Test  the above code and you should see a password that’s 10 characters long.





















No comments:

Post a Comment