Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # File Name: Death of Privacy (2019)
- # Author: Python253
- """
- Cicada3301 Decryption Script
- This script decrypts the final provided Cicada3301 ciphertexts using the CAST-5 algorithm
- with the key "EMERGE" and displays the decrypted messages in the terminal.
- Requirements:
- - Python 3
- - PyCryptodome library (install using: pip install pycryptodome)
- Usage:
- 1. Ensure the required libraries are installed.
- 2. Run the script.
- Additional Notes: https://pastebin.com/TbkHwySL
- """
- from Crypto.Cipher import CAST
- from base64 import b64decode
- def decrypt_ciphertext(ciphertext, key):
- cipher = CAST.new(key.encode(), CAST.MODE_ECB)
- decrypted_message = cipher.decrypt(b64decode(ciphertext)).decode('utf-8')
- return decrypted_message.rstrip('\x00') # Remove padding
- # Key
- key = "EMERGE"
- # List of ciphertexts
- ciphertexts = [
- "RyKG0fBRAcIn66bQ3CQlX2dWV6+lVQYFcGsKBEP9u8gY37ISHDeI+hKgXhAhtFAzUwsh6Q59+1ZS XysGEgIyvw4I2QEcSOWh",
- "9Ry/lPbEbM91PFu5heorJtoQEj8hQM/9+6FIxibhb0Tq4cFl57Bij0HpAmwsAkZ2rojayosu+vul p8x4BvTq6CGEamFVzcfz1lp1RfiiN2aSK3mLILtgOwUDEcqwhH3WXen8ptUDuphzQ62RVtunLQ==",
- "xcoCxZCMWAmVA3Xx20FgF8ZDRqoyoOEwB1FyAkgJNv9+6RncUSTmz1tv+IJBeGvg",
- "q9C74tNACOd3YH+SzcF6WoKh4CvksBEf4bBvExprALZVpej3xjE7oEpSbnSSrkgCI7BCBS0YpQo+ qOzgMw2hTQ==",
- "wIbxQAJETCSYuia9HKyLnukC7dlLw3+kFTLSUM+fAFS8fvDnD+ON2wVivtB4JSjgLfnDZvpxl1ey veIOBrIIjQ==",
- "4mP0eNt9/bplWXxygP7tspRKpdgyQA4h9ubvUMnNxUM8nBEhr49IP8Nrf9zS/lw9ercJPF8gySRc O312c6x+4KgCPFBLR+sl3M97mDKNDiDFaMMqNtaUltsefk22VKq4Pqjs4DMNoU0=",
- "r3S0H+SW0CwfyiRiB0vSYOYVzpYEIepjvYN/rdOM6sdlT1j0E8amkNsQ3rnMS6AkGh5iOTnbYFlr 0tZIAfcNLrFw48tsKmUv",
- "/U5ofW6tQt8xqLc9mbuI9uF3KSmJacGmnh0xmaoK6KeIob+yTvIUcg==",
- "/U5ofW6tQt/u61bbwtLpclx67PEq6Wjy"
- ]
- # Decrypt and display messages
- for i, ciphertext in enumerate(ciphertexts, start=1):
- decrypted_message = decrypt_ciphertext(ciphertext, key)
- print(f"{i}:\n{decrypted_message}\n")
Add Comment
Please, Sign In to add comment