crypto/pixelated

This commit is contained in:
2026-07-04 20:29:37 +09:00
parent af3f52a38c
commit 26289accc1
4 changed files with 21 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
picoCTF{8cdf93c3}
Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p "python3.withPackages (ppkgs: with ppkgs; [ pillow numpy ])"
from PIL import Image
import numpy as np
def main():
with Image.open("scrambled1.png") as im:
img1 = np.asarray(im)
with Image.open("scrambled2.png") as im:
img2 = np.asarray(im)
result_array = img1 + img2
result = Image.fromarray(result_array)
result.save('out.png')
if __name__ == "__main__":
main()