[Cryptography] quantum computers & crypto

Ray Dillinger bear at sonic.net
Tue Nov 9 16:39:49 EST 2021



On 11/9/21 2:12 AM, Christian Huitema wrote:

> Sorry, my laziness for not looking up "perfect shuffle" as a term of
> the art. I quick-read that as "perfectly random shuffles", and that is
> indeed not what a "perfect shuffle" is. And indeed, repeating a
> perfect shuffle 52 times is very much like repeating rot13 twice.
>
>
 Just as well, the "eyeball compiler" code I posted was wrong anyhow.

The line

(shuffle%2?deck1:deck2)[count]=(shuffle%2?deck2:deck1)[count/2+count%2?0:26];
 
should have said 

((shuffle%2?&deck1:&deck2)*)[count]=((shuffle%2?&deck2:&deck1)*)[count/2+count%2?0:26];

instead. 


Probably trying to do too much on one line there anyway.

			Bear



More information about the cryptography mailing list