how to load and decrypt the data?
plant3jyyehejy (16)

im creating a login system so i need to encrypt the password/username for saving, however after i load the data in i cannot decrypt is to read the data, how am i able to store the key with the user and still encrypt it to decrypt later

p.s t1 stands for test1
test file name:t1 password:t1

You are viewing a single comment. View All
ch1ck3n (2341)

@CodeMaster007

userpassword == "encryptedpassword" # let's pretend this is an encrypted password

if encrypt(userinput) == userpassword: # userinput is the input of the user
  print("yes the password is correct") # no need to decrypt