Memes as Cryptography
MemeCrypt is a Python tool that transforms your messages into cryptic, context-rich memes using the magic of LLMs (currently only gpt-4o-mini).
Memes arenβt just for humorβthey're a form of encryption. Every meme carries contextual keys; cultural, social, or personal; understood by those in the know. When you share a meme, you're encoding information within a visual and textual format, and only those with the right contextual entropy can fully decode its meaning. This aligns with the core ideas of information theory, where shared context between sender and receiver determines how much information can be conveyed.
For a deeper dive into this theory, check out the attached paper.
(meme assembled in http://www.dingboard.com)
MemeCrypt takes this concept further by automating the cryptographic potential of memes using AI. With MemeCrypt, you can convert your messages into memes, embedding hidden meanings that only specific audiences can decode.
- AI-Powered Message Encryption: OpenAI's GPT-4o-mini generates a unique key for every message, embedding it into meme captions.
- On-Demand Meme Template Selection: Templates are dynamically downloaded only when needed, saving resources.
- Streaming Generation: Real-time generation of captions and meme templates.
- Memetic Communication: Transform standard messages into cryptic, context-rich memes designed for select audiences.
-
Clone the Repository
git clone https://github.com/bardia323/MemeCrypt.git cd MemeCrypt
-
Install Dependencies
pip install -r requirements.txt
-
Configure Environment Variables
- Create a
.env
file in the root directory:touch .env
- Add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_here
- Create a
-
Run the Meme Generator
python meme-crypt.py
-
Input Your Message
Enter the message you want to encode in the meme: Final exams are overwhelming this semester.
-
Receive Your Meme
- Watch as the meme is generated in real-time.
- Your personalized meme template and caption will appear in the
generated_memes/
folder.
Your secret message, now an encrypted meme!
- Message Input: You provide the message you want to encrypt.
- Contextual Key Generation: GPT-4 generates a cryptographic key based on contextual cues from your message.
- Meme Template Selection: The AI selects a meme template that best aligns with the hidden context.
- Caption Creation: The captions, embedding the message and context, are generated in real-time.
- Meme Creation: A fully formed, contextually encrypted meme is produced, ready for selective sharing.
GNU General Public License v2.0 Β© Bardia
π Follow Me on GitHub | π§ Contact