An open API service indexing awesome lists of open source software.

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

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 setup

setup(
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)

[![Contact Me On Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/Farooq_is_king)




Last Edited on: 15/11/2024