Python Obfuscator, perfect to make your code unreadable!
Archiviert 2 years ago
B
blueschnabeltier
I made a little Python OBF, enjoy!
```py
from requests import post
from bs4 import BeautifulSoup
def aes256_obf(code: str) -> str:
html = post("https://pyobfuscate.com/pyd", data={"input_text": code}).text
soup = BeautifulSoup(html, "html.parser")
obf_code = "\n".join(line for line in soup.select_one("#myTextarea2").text.splitlines()[2:][:-1])
return obf_code
code = """
print("1")
print("2")
print("3")
"""
obf_code = aes256_obf(code)
# Prints the code
print(code)
# Runs the code
exec(code)
# Prints the obfuscated code
print(obf_code)
# Runs the obfuscated code
exec(obf_code)
```
Requirements for Obfuscator:
`bs4`
Requirements for Obfuscator & People who run the code:
`requests` `pycryptodome`
