I am creating an application with Pyqt5 (QT). The application do the Password Manager tasks.
I have a text file that names and passwords stored in it (encrypted).
One section of app has a tool that user can change the password from entering the name. (If you don't understand look at the picture.)
My text file is like this :
newname1|password1
newname2|password2
...
As you noticed, after "|"
is the password. How can I find newname2
and just replace the password section from new password field, or remove the line and replace with a new one (for example: newname2|newpassword
)?
Also I have to say that I know how to fetch data from inputs, I just want to know how to do it in python code.