Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
RC4 with a Deck of Cards (mail-archive.com)
8 points by pcwalton on March 9, 2024 | hide | past | favorite | 7 comments


When I was trying to learn C at 15 or so I tried to implement Solitaire crypto from cryptonomicon as part of some programming challenge: https://en.wikipedia.org/wiki/Solitaire_(cipher)

Failed but learnt a lot about memory management :)


There's a "simplified" implementation of it here: https://sos-cer.github.io/sssolitaire/


What is RC4?


A formerly-popular cipher that works better than you'd expect given its extreme simplicity--simple enough that you can encrypt and decrypt it by hand with a deck of cards.

Nowadays it's insecure though, so you should never use it.


Old encryption algorithm, don't use it.

Infamous for "kerberoasting", among other exploits.


Is that - don't use it ... with playing cards?


A stream cipher.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: