File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ def decrypt_all_files(self):
67
67
enc = Encryptor (key )
68
68
clear = lambda : os .system ('cls' )
69
69
70
- if os .path .isfile ('password .txt.enc' ):
70
+ if os .path .isfile ('p .txt.enc' ):
71
71
while True :
72
72
password = str (input ("Enter password: " ))
73
- enc .decrypt_file ("password .txt.enc" )
73
+ enc .decrypt_file ("p .txt.enc" )
74
74
p = ''
75
- with open ("password .txt" , "r" ) as f :
75
+ with open ("p .txt" , "r" ) as f :
76
76
p = f .readlines ()
77
77
if p [0 ] == password :
78
- enc .encrypt_file ("password .txt" )
78
+ enc .encrypt_file ("p .txt" )
79
79
break
80
80
81
81
while True :
@@ -105,10 +105,10 @@ def decrypt_all_files(self):
105
105
break
106
106
else :
107
107
print ("Passwords Mismatched!" )
108
- f = open ("password .txt" , "w+" )
108
+ f = open ("p .txt" , "w+" )
109
109
f .write (password )
110
110
f .close ()
111
- enc .encrypt_file ("password .txt" )
111
+ enc .encrypt_file ("p .txt" )
112
112
print ("Please restart the program to complete the setup" )
113
113
114
114
You can’t perform that action at this time.
0 commit comments