How To Create a Random Password Generator using Python
1 min readFeb 26, 2021
Random Password Generator using Python
- Our password is very important for you and us.
- Choosing passwords for accounts can sometimes be boring.
- So, let’s solve this problem in a pythonic way and know how it happens.
- Let’s create our own password generator using Python and avoid hackers yourself.
First Our Goal
- We need a correctly secured password.
- So, our password contains digit, symbol lowercase and uppercase alphabet.
- So, first we ask users how long is your password because we are safe or not.
Project Requirement
To build this project we will use the basic concept of python and libraries — random, string.
Installation
- We are used these two models, random and string.
- In case not installed then copy this following command and paste in your terminal/CMD (Command Prompt) to install.
- These are two way using sudo command and without using sudo.
pip install stringsudo pip install stringpip install ramdomsudo pip install random
The First step is to import libraries
import string
import random
Source code
visit https://codeswithsunny.blogspot.com/2021/02/random-password-generator-using-python.html