File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ This is a Python script that obfuscates Python code by renaming variables and fu
7
7
8
8
- ** Customizable obfuscation** : Specify the length of obfuscated names.
9
9
- ** Automatic detection** : Detects and skips obfuscation for built-in names, imported modules, and essential functions. (almost always)
10
+ - ** String safety** : Leaves string literals and comments untouched to avoid breaking code functionality.
10
11
- ** Output to a new file** : Saves the obfuscated code in a separate file, leaving the original file untouched.
11
12
12
13
## Requirements
@@ -42,7 +43,8 @@ This will read the file `example.py`, obfuscate it with randomized names of leng
42
43
- Names listed in the ` NO_OBFUSCATE ` set.
43
44
3 . ** Generate random names** : Uses the ` random ` module to generate randomized names of the specified length.
44
45
4 . ** Replace names** : Substitutes the original names with the randomized names while ensuring the code remains functional.
45
- 5 . ** Save the output** : Writes the obfuscated code to the specified output file.
46
+ 5 . ** Token safety** : Leaves string literals, comments, and other tokens untouched to preserve readability in necessary areas.
47
+ 6 . ** Save the output** : Writes the obfuscated code to the specified output file.
46
48
47
49
## Limitations
48
50
You can’t perform that action at this time.
0 commit comments