Skip to content

Commit 6884674

Browse files
Update script.py
1 parent 7c06320 commit 6884674

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: script.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ def decrypt_all_files(self):
6767
enc = Encryptor(key)
6868
clear = lambda: os.system('cls')
6969

70-
if os.path.isfile('password.txt.enc'):
70+
if os.path.isfile('p.txt.enc'):
7171
while True:
7272
password = str(input("Enter password: "))
73-
enc.decrypt_file("password.txt.enc")
73+
enc.decrypt_file("p.txt.enc")
7474
p = ''
75-
with open("password.txt", "r") as f:
75+
with open("p.txt", "r") as f:
7676
p = f.readlines()
7777
if p[0] == password:
78-
enc.encrypt_file("password.txt")
78+
enc.encrypt_file("p.txt")
7979
break
8080

8181
while True:
@@ -105,10 +105,10 @@ def decrypt_all_files(self):
105105
break
106106
else:
107107
print("Passwords Mismatched!")
108-
f = open("password.txt", "w+")
108+
f = open("p.txt", "w+")
109109
f.write(password)
110110
f.close()
111-
enc.encrypt_file("password.txt")
111+
enc.encrypt_file("p.txt")
112112
print("Please restart the program to complete the setup")
113113

114114

0 commit comments

Comments
 (0)