@@ -184,26 +184,26 @@ def decrypt_file(self,file, key):
184
184
185
185
186
186
# Tests
187
- crypt = XORCipher ()
188
- key = 67
187
+ # crypt = XORCipher()
188
+ # key = 67
189
189
190
- # test enrcypt
191
- print crypt .encrypt ("hallo welt" ,key )
192
- # test decrypt
193
- print crypt .decrypt (crypt .encrypt ("hallo welt" ,key ), key )
190
+ # # test enrcypt
191
+ # print crypt.encrypt("hallo welt",key)
192
+ # # test decrypt
193
+ # print crypt.decrypt(crypt.encrypt("hallo welt",key), key)
194
194
195
- # test encrypt_string
196
- print crypt .encrypt_string ("hallo welt" ,key )
195
+ # # test encrypt_string
196
+ # print crypt.encrypt_string("hallo welt",key)
197
197
198
- # test decrypt_string
199
- print crypt .decrypt_string (crypt .encrypt_string ("hallo welt" ,key ),key )
198
+ # # test decrypt_string
199
+ # print crypt.decrypt_string(crypt.encrypt_string("hallo welt",key),key)
200
200
201
- if (crypt .encrypt_file ("test.txt" ,key )):
202
- print "encrypt successful"
203
- else :
204
- print "encrypt unsuccessful"
201
+ # if (crypt.encrypt_file("test.txt",key)):
202
+ # print "encrypt successful"
203
+ # else:
204
+ # print "encrypt unsuccessful"
205
205
206
- if (crypt .decrypt_file ("encrypt.out" ,key )):
207
- print "decrypt successful"
208
- else :
209
- print "decrypt unsuccessful"
206
+ # if (crypt.decrypt_file("encrypt.out",key)):
207
+ # print "decrypt successful"
208
+ # else:
209
+ # print "decrypt unsuccessful"
0 commit comments