Skip to content

Commit 0e7d448

Browse files
author
Christian Bender
authored
comment out
I comment out some code lines in the test-section
1 parent b25bc2c commit 0e7d448

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

ciphers/XOR_cipher.py

+18-18
Original file line numberDiff line numberDiff line change
@@ -184,26 +184,26 @@ def decrypt_file(self,file, key):
184184

185185

186186
# Tests
187-
crypt = XORCipher()
188-
key = 67
187+
# crypt = XORCipher()
188+
# key = 67
189189

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)
194194

195-
# test encrypt_string
196-
print crypt.encrypt_string("hallo welt",key)
195+
# # test encrypt_string
196+
# print crypt.encrypt_string("hallo welt",key)
197197

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)
200200

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"
205205

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

Comments
 (0)