Nth digit of PI
hack
hack at watson.ibm.com
Fri Jun 16 14:47:07 EDT 2000
In article <394A5795.F4DE98FB at san.rr.com>,
Courageous <jkraska1 at san.rr.com> wrote:
>
>> Suppose, however, that you could get digit 'n' of pi directly (or e,
>> or any other inifinte, nonrepeating sequence). All I have to do is
>> communicate which digit of pi the message key starts at, and I can
>> generate the rest of the key.
>
>This is a collosally bad idea, IMO.
>
>C/
It works fine if the number of bits in 'n' is large enough, e.g. 16K bits.
Your key would then be the 16K bits of pi starting around bit 10^5000 (to
encode a message of 16K bits). Of course, you haven't gained much: you
might as well use 'n' itself!
Michel.
More information about the Python-list
mailing list