4 ms·
How do you turn a shuffled deck into a key long enough to encrypt a file?
by capnrefsmmat 14y ago
How do you turn a shuffled deck into a key long enough to encrypt a file?
- batgaijin 14y agothe order of the shuffled deck is 52!
- algorias 14y agoA one time pad consumes as many bits as the message length. It has nothing to do with the bits of information that can theoretically be stored in a deck of cards.
- batgaijin 14y agouse something like pi to create a number of specific length (twice as long as the file?) and permute it according to the card order?
- nialo 14y agoThe obvious and totally impractical solution is to construct a look-up table between deck states and log2(52!) bit long strings. I imagine there's a better algorithm, but it's clearly possible.