Hiding messages in a deck playing cards

2 ashfn 2 7/18/2025, 2:41:04 PM asherfalcon.com ↗

Comments (2)

ashfn · 6h ago
Hey all, I found a cool way to convert text into a specific order of a deck of playing cards. I detailed the instructions of how it works in the blog post but a brief overview would be that it uses Lehmer codes which allow you to uniquely identify each permutation of a set i.e. each of the many many ways a deck of cards can be shuffled/arranged
SetTheorist · 5h ago
Reminds me of the playing-card based encryption system designed by Bruce Schneier for the novel Cryptonomicon .

https://en.wikipedia.org/wiki/Solitaire_(cipher)