nouveau challenges

This commit is contained in:
Valentin VERDIER
2023-02-28 13:27:31 +01:00
parent 3f600ad598
commit 9beb808890
6 changed files with 1235 additions and 0 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 KiB

View File

@ -0,0 +1,16 @@
#!/usr/bin/python3
key = "fallen"
keysz = len(key)
f = open("ch3.bmp", mode="rb")
data = f.read()
f.close()
out = bytearray()
for i in range(len(data)):
out.append(data[i] ^ ord(key[(i) % keysz]))
f = open("ch3.out.bmp", mode="wb")
f.write(out)
f.close()