nullfox 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nullfox-0.1.0/LICENCE ADDED
File without changes
nullfox-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: nullfox
3
+ Version: 0.1.0
4
+ Summary: NullFox Encryption Tool
5
+ Author: NullF0X
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENCE
9
+ Dynamic: license-file
10
+
11
+ # NullFox Encrypter 🦊🔥
12
+
13
+ A lightweight Lua script encryption module created by NullF🦊X.
14
+
15
+ ## Features
16
+ - XOR + Base64 encryption
17
+ - Fast and simple
18
+ - Works on any file
19
+
20
+ ## Usage
@@ -0,0 +1,10 @@
1
+ # NullFox Encrypter 🦊🔥
2
+
3
+ A lightweight Lua script encryption module created by NullF🦊X.
4
+
5
+ ## Features
6
+ - XOR + Base64 encryption
7
+ - Fast and simple
8
+ - Works on any file
9
+
10
+ ## Usage
@@ -0,0 +1 @@
1
+ from .encrypt import encrypt_file, decrypt_file
@@ -0,0 +1,27 @@
1
+ import base64
2
+ from .utils import xor_encrypt
3
+
4
+ def encrypt_file(input_path, output_path, key):
5
+ with open(input_path, "rb") as f:
6
+ data = f.read()
7
+
8
+ encrypted = xor_encrypt(data, key)
9
+ encoded = base64.b64encode(encrypted)
10
+
11
+ with open(output_path, "wb") as f:
12
+ f.write(encoded)
13
+
14
+ return True
15
+
16
+
17
+ def decrypt_file(input_path, output_path, key):
18
+ with open(input_path, "rb") as f:
19
+ data = f.read()
20
+
21
+ decoded = base64.b64decode(data)
22
+ decrypted = xor_encrypt(decoded, key)
23
+
24
+ with open(output_path, "wb") as f:
25
+ f.write(decrypted)
26
+
27
+ return True
@@ -0,0 +1,21 @@
1
+ import sys
2
+ from .encrypt import encrypt_file, decrypt_file
3
+
4
+ def main():
5
+ if len(sys.argv) < 5:
6
+ print("Usage: nullfox <encrypt|decrypt> <input> <output> <key>")
7
+ return
8
+
9
+ action, infile, outfile, key = sys.argv[1:5]
10
+
11
+ if action == "encrypt":
12
+ encrypt_file(infile, outfile, key)
13
+ print("Encrypted ✅")
14
+ elif action == "decrypt":
15
+ decrypt_file(infile, outfile, key)
16
+ print("Decrypted ✅")
17
+ else:
18
+ print("Unknown action!")
19
+
20
+ if __name__ == "__main__":
21
+ main()
@@ -0,0 +1,8 @@
1
+ def xor_encrypt(data, key):
2
+ key_bytes = key.encode()
3
+ result = bytearray()
4
+
5
+ for i in range(len(data)):
6
+ result.append(data[i] ^ key_bytes[i % len(key_bytes)])
7
+
8
+ return bytes(result)
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: nullfox
3
+ Version: 0.1.0
4
+ Summary: NullFox Encryption Tool
5
+ Author: NullF0X
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENCE
9
+ Dynamic: license-file
10
+
11
+ # NullFox Encrypter 🦊🔥
12
+
13
+ A lightweight Lua script encryption module created by NullF🦊X.
14
+
15
+ ## Features
16
+ - XOR + Base64 encryption
17
+ - Fast and simple
18
+ - Works on any file
19
+
20
+ ## Usage
@@ -0,0 +1,12 @@
1
+ LICENCE
2
+ README.md
3
+ pyproject.toml
4
+ nullfox/__init__.py
5
+ nullfox/encrypt.py
6
+ nullfox/main.py
7
+ nullfox/utils.py
8
+ nullfox.egg-info/PKG-INFO
9
+ nullfox.egg-info/SOURCES.txt
10
+ nullfox.egg-info/dependency_links.txt
11
+ nullfox.egg-info/entry_points.txt
12
+ nullfox.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ nullfox = nullfox.main:main
@@ -0,0 +1 @@
1
+ nullfox
@@ -0,0 +1,17 @@
1
+ [build-system]
2
+ requires = ["setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "nullfox"
7
+ version = "0.1.0"
8
+ description = "NullFox Encryption Tool"
9
+ authors = [
10
+ {name = "NullF0X"}
11
+ ]
12
+ readme = "README.md"
13
+ requires-python = ">=3.8"
14
+ dependencies = []
15
+
16
+ [project.scripts]
17
+ nullfox = "nullfox.main:main"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+