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: â)
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
+ 1
Thank you so much...thatâs really helpful Lothar
+ 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/