Get the latest tech news

Hiding messages in a deck playing cards


Asher Falcon's personal website - Software engineer and student

hiding messages in playing cardsI was recently thinking about the huge number of ways you can shuffle a deck of 52 cards and wondered if it would be possible to store arbitrary data, which I explore in this blog post. I hacked together a website where I ported the functions to c++ and used WebAssembly/Emscripten to make it run in the browser Blazingly Fast 🔥, I also added a simple XOR cipher with a second string of text if you want to 'encrypt' your message before it hits the deck, but I think it's probably not neccesary as no one would suspect that you've hidden a 46 character message in your deck of cards! This whole process from thinking of the idea to implementing it was a lot of fun and I'm glad I got to share it with you.If you have any questions or comments, please feel free to reach out to me here.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of messages

messages

Photo of deck playing cards

deck playing cards

Related news:

News photo

Add Custom Backgrounds to Messages in iOS 26

News photo

iOS 26 Allows Cellular Calls and SMS/RCS in Third-Party Apps in EU

News photo

Marco Rubio Impersonation Under State Dept. Investigation