Hello readers,
Today you are goin to see that how you can generate a 16 digit strong password using python.
| Generate password using python |
To perform this you must have basic knowledge of python programming language.
To install python perform the following steps :-
1) Go to - https://www.python.org/downloads/
2) click "Download" .
3) Download the any latest python version from the given website .
4) When download complete just open your file explorer and double click on downloaded python file and install the python in which directory you want.
5) After the successful installation just double click on python icon on desktop to open python IDE.
| python logo |
After the successful installation of python you need a IDE which support python. I am using VS code(Visual studio code), you can use pycharm or python ide too.
How to install VS Code?
To install VS code(Visual Studio code) follow these steps :-
1) Go to - https://code.visualstudio.com/download
2) Select your system which you are using, it is MacOS , Linux or Windows and download according to your system architecture.
3) Once download is complete run the installer file (.exe file).
4) Agree the terms and condition and click on next and then select the directory where to store the files of VS code.
5) After one or two permission VS code will starts installing on your system.
6) Go to the desktop icon and double click it to open.
| vs code |
How to install Pycharm?
To install Pycharm follow these steps :-
1) Go to - https://www.jetbrains.com/pycharm/download/#section=windows
2) Select community and start downloading.
3) Once the downloading is completed click on the installer file(.exe file).
4) Now agree the terms and conditions and go on.
5) Select the directory where Pycharm can store their files and updates.
6) After the successful installation go to desktop and double click on pycharm icon to open.
| pycharm logo |
This is just a basic level of python programming, every beginner should try. To perform this activity you must have installed python on your PC or laptop and a IDE which supports Python. There is one library you need to install . For doing this you need to install a module named "random" , for installing this random lib open your command prompt and type "pip install random".
In your command prompt type "pip install random" .
After the successful installation of library you should start typing the code.
When finish typing code execute the and if any error occur then resolve it and if your code executed successfully you can see the output in terminal window. Use terminal window to give input and see output.
See my other videos - https://cutt.ly/nn1L8bT
If you find this helpful then let me know in the comment section.
After the successful installation of random lib open the Ide whatever IDE you have and type the code and then debug the code and execute the code to see the output. In this video i am VS Code IDE.
code :-
import random
lower = "abcdefghijklmnopqrstuvwxyz"
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
numbers = "0123456789"
symbols = "{}[]()@#$%&*"
all = lower+upper+numbers+symbols
lenght = 16
password = "".join(random.sample(all,lenght))
print(password)

Comments
Post a Comment
Thank you for sharing this.
You’re helping us become better. Want to stay in the loop? Subscribe to our YouTube channel.