https://github.com/rohitaryal/cloudflare-email-decoder
Decode/encode Cloud-Flare obfuscated emails
https://github.com/rohitaryal/cloudflare-email-decoder
cloudflare
Last synced: about 2 months ago
JSON representation
Decode/encode Cloud-Flare obfuscated emails
- Host: GitHub
- URL: https://github.com/rohitaryal/cloudflare-email-decoder
- Owner: rohitaryal
- License: mit
- Created: 2024-06-09T03:29:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-04T16:17:17.000Z (7 months ago)
- Last Synced: 2025-08-04T19:52:24.241Z (7 months ago)
- Topics: cloudflare
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CF E-Mail Decoder
Cloud-flare obfuscates emails generally to prevent from web-scrapers. But there's an easy way out to decode this. (This can also encode emails if you need)
## Before beginning:
- Obfuscated emails are in `data-cfemail` attribute
- Put the `decode.py` in your library path
## How to use?
### For decoding:
```python
from decoder import decode
decoded_list = decode('a7c2dfc6cad7cbc2e7d389cac2')
print(decoded_list[0])
```
### For encoding:
```python
from decoder import encode
encoded_list = encode('example@gmail.com')
print(encoded_list[0])
```
## More examples:
#### Example 1:
```python
from decoder import decode
decoded_list = decode("a7c2dfc6cad7cbc2e7d389cac2","73111712001b15101233181a1a075d12105d1a1d")
for emails in decoded_list:
print(emails)
```
#### Example 2:
```python
from decoder import encode
encoded_list = encode('example@t.me', 'example@a.in')
for strings in encoded_list:
print(strings)
```
#### Example 3:
```python
from decoder import decode, encode
plain_email = "example@gmail.com"
encoded_email = encode(plain_email)
decoded_email = decode(encoded_email[0])
print("Testing With: " + plain_email)
print("Re-encoded: " + encoded_email[0])
print("Re-decoded: " + decoded_email[0])
```
---
*In case of some issue submit it in issue section*