summaryrefslogtreecommitdiff
path: root/logical_operators/not.py
diff options
context:
space:
mode:
authorroot <root@annapurna.annapurna.fitness>2025-07-09 16:07:39 +0200
committerroot <root@annapurna.annapurna.fitness>2025-07-09 16:07:39 +0200
commitdf59764861742648ccc1dd27388cd95703d3080a (patch)
tree56351af27175560e35da0bd06ce5dc503143ec4e /logical_operators/not.py
parent72cb72a14dd0f64b1cd861057b61266dfc10bb76 (diff)
changed folder structure & deleted useless filesHEADmaster
Diffstat (limited to 'logical_operators/not.py')
-rw-r--r--logical_operators/not.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/logical_operators/not.py b/logical_operators/not.py
deleted file mode 100644
index e010561..0000000
--- a/logical_operators/not.py
+++ /dev/null
@@ -1,16 +0,0 @@
-from sys import argv
-
-# Read two file as byte array
-file_b = bytearray(open(argv[1], 'rb').read())
-
-size = len(file_b)
-notd_byte_array = bytearray(size)
-
-# NOT the file
-for i in range(size):
- notd_byte_array[i] = file_b[i] ^ 255
-
-# Write the NOTd bytes to the output file
-open(argv[2], 'wb').write(notd_byte_array)
-
-print (f"[*] NOT {argv[1]}\n[*] Saved to \033[1;33m{argv[2]}\033[1;m.")