+ 3

How to make password code in Python?

Python password code

20th Feb 2022, 1:04 PM
Chris
18 ответов
+ 3
Password maker? Password validator? What kind of password code? Have you tried searching the Codes section? I'd go there first when I need an example, or inspiration ...
20th Feb 2022, 1:13 PM
Ipang
+ 2
Like this Password is 2994 1 2 3 4 5 6 7 8 9
20th Feb 2022, 1:15 PM
Chris
+ 2
What did you mean "click"? are you into making a GUI app? if you want GUI, then web code is the way to go cause only web code supports GUI here.
20th Feb 2022, 1:19 PM
Ipang
22nd Feb 2022, 10:37 AM
CodeStory
CodeStory - avatar
+ 2
Create a content store it , then whenever there is an input check if that input correspond to the stored value.
22nd Feb 2022, 11:27 AM
Tychique
Tychique - avatar
+ 1
Please elaborate what you want to do
20th Feb 2022, 1:12 PM
Lisa
Lisa - avatar
+ 1
And click
20th Feb 2022, 1:15 PM
Chris
+ 1
Hmmm , i think you are taking about the getpass module It is a module that allows user to enter hidden input import getpass x = getpass.getpass()
21st Feb 2022, 1:07 PM
Pythøñ Cúltîst⚔️🔥🇳🇬
Pythøñ  Cúltîst⚔️🔥🇳🇬 - avatar
+ 1
You mean password generator?? Here import string from random import * letters = string.ascii_letters digits = string.digits symbols = string.punctuation chars = letters + digits + symbols min_length = 8 max_length = 16 password = "".join(choice(chars) for x in range(randint(min_length, max_length))) print(password) credit-sololearn or import random password ="" for i in range(12): password += random.choice(list("1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM@#$%&*-=()!"':;/?~±×÷•°`´{}©£€^®¥_+[]¡<>¢|\¿]}'")")) print(password)
21st Feb 2022, 5:42 PM
Abemelek Ermias
Abemelek Ermias - avatar
+ 1
Question not clear Do you want to collect password from user as input and compare it with what you have in your database
21st Feb 2022, 8:15 PM
okonkwo calistus
okonkwo calistus - avatar
+ 1
Can you describe more that we can understand what you want actually?
22nd Feb 2022, 6:25 AM
Chandan Maurya
Chandan Maurya - avatar
+ 1
How can I solve
22nd Feb 2022, 12:38 PM
Nour Khalid
Nour Khalid - avatar
+ 1
Like this For example password is 1111, 1 2 3 4 5 6 7 8 9 And click 1,1,1,1 ,become unlocked.
22nd Feb 2022, 1:04 PM
Chris
0
This can't make with Python?
20th Feb 2022, 1:16 PM
Chris
0
from getpass import getpass name = input('Name:') password= getpass('Password:')
21st Feb 2022, 3:59 PM
Saad Khan
Saad Khan - avatar
0
Sololearn not import GUI so first download "Pydroid 3" from Google play store and learn GUI program. Run this program. from tkinter import * #defining login function def login(): uname=username.get() pwd=password.get() if uname=='' or pwd=='' message.set("fill the empty field!!!") else: if uname=="abcd@gmail.com" and pwd=="abc123": message.set("Login success") else: message.set("Wrong username or password!!!") #defining loginform function def Loginform(): global login_screen login_screen = Tk() #Setting title of screen login_screen.title("Login Form") #setting height and width of screen login_screen.geometry("300x250") #declaring variable global message; global username global password username = StringVar() password = StringVar() message=StringVar() #Creating layout of login form Label(login_screen,width="300", text="Please enter details below", bg="orange",fg="white").pack() Label(login_screen, text="")
22nd Feb 2022, 5:26 AM
Chalacho
0
Yes
22nd Feb 2022, 1:04 PM
Nour Khalid
Nour Khalid - avatar