https://github.com/sudor2spr/example
example encoded.py
https://github.com/sudor2spr/example
angel python sudor2spr telegram-bot woodcraft
Last synced: about 2 months ago
JSON representation
example encoded.py
- Host: GitHub
- URL: https://github.com/sudor2spr/example
- Owner: SudoR2spr
- Created: 2024-11-15T05:44:37.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-15T06:32:14.000Z (6 months ago)
- Last Synced: 2025-02-02T14:38:11.463Z (4 months ago)
- Topics: angel, python, sudor2spr, telegram-bot, woodcraft
- Language: Python
- Homepage: https://t.me/Opleech_WD
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# example
- To use the Base64 encoded code in the encoded.py file in your project, it must first be decoded and then executed.
- The main.py and Requirement.txt files will remain directly as they are.
- Below is an example of decoding the code in the `encoded.py` file:
- Step 1: Decode the Base64 encoded code.
- Step 2: Execute the decoded code.
- 👇 Example: `encoded.py`
```
import base64# Base64 encoded encoded.py code
encoded_code = b"ZGVmIGRvdWJsZV9udW1iZXIobik6CiAgICByZXR1cm4gbiAqIDIKCm51bWJlciA9IDUKcmVzdWx0ID0gZG91YmxlX251bWJlcihudW1iZXIpCnByaW50KGYiVGhlIGRvdWJsZSBvZiB7bnVtYmVyfSBpcyB7cmVzdWx0fSIp"# Base64 decode encoded.py code
decoded_code = base64.b64decode(encoded_code).decode('utf-8')# Execute the decoded code
exec(decoded_code)
```
- Example Creating a `setup.py` file.```
from setuptools import setupsetup(
name='encoded', # The name of the package
version='0.1',
py_modules=['encoded'],
install_requires=[
'requests', # Your other dependencies
'Flask',
],
)
```## Connect with me
![]()
-----
Credits: [𝐖𝐎𝐎𝐃𝐜𝐫𝐚𝐟𝐭](https://t.me/Farooq_is_KING)[](https://t.me/Farooq_is_king)
Last Edited on: 15/11/2024