0

How do I store the username and password in an external text file?

name=input(“Enter your name: “) age=input(“Enter your age: “) username=(name[:3])+ age password=input(“Enter your password: “)

11th Jan 2020, 5:18 PM
Shamima Xarif
Shamima Xarif - avatar
4 Answers
+ 3
You can use a simple text file, or in case there sre more data to store a jason file. If you are looking to store a lot of data, sqlite is s good choice. In any of this cases the data in files are not encrypted!!! Using text files: https://code.sololearn.com/cESZeFlM1cRR/?ref=app Using jason: https://code.sololearn.com/c6i2Xq4DJvx5/?ref=app
11th Jan 2020, 5:36 PM
Lothar
Lothar - avatar
+ 1
Thank you so much...that’s really helpful Lothar
11th Jan 2020, 7:16 PM
Shamima Xarif
Shamima Xarif - avatar
+ 1
Raw passwords of users should never be stored in files or databases. They should be encrypted or hashed before you save them. https://www.google.com/amp/s/www.howtogeek.com/434930/why-are-companies-still-storing-passwords-in-plain-text/amp/
12th Jan 2020, 5:59 AM
Tibor Santa
Tibor Santa - avatar