encryption with pi

vedaal_at_hush.com
Date: 07/29/04


Date: 29 Jul 2004 13:31:56 -0700

can the following simple substitution cipher using pi, be made secure
?

C = P rot [ s(l+n) mod 256 ]

where 's' is a substring of pi of length k, beginning at digit 'l',
and 'n' is the sequenced character of the plaintext

example:

if 'l' is chosen to be 599, and 'k' to be 10,
then for the first character of the plaintext, (n=1) ,
a 10 digit string of pi beginning with the 600th digit, would be;
2000568127

for the second character, (n=2),
s(l+n) would be:
0005681271

as s(l+n) is not periodic,
[s(l+n) mod 256] would also expected not to be periodic.

(assume k would arbitrarily be greater than 12,
as there are several areas of pi that have strings of 0000000,
but none known (to 100 million digits, anyway, ;-) ) to have eight
consecutive zeroes)

would this be secure enough,
or would it need the string length 'k' to change by some agreed upon
f(n),
so that k also changes with each character of the plaintext?

the correspondents would include instructions in each message, for new
values of 'k', 'l', and f(n), to be used for the next message,
to thwart known-plaintext attacks.

the attackers would know the algortithm, but not the chosen values of
k and l
(or of f(n) if it is necessary).

tia,

vedaal



Relevant Pages

  • Re: strings patterns and the like
    ... >>You could take the string and have a loop to look at each character in the ... Then you could have an array of size 6 which checks the current ... >>position to see if it's an x or a digit... ...
    (comp.lang.java.help)
  • Re: passing array to isdigit()
    ... > in computer programming symbol has a different meaning; ... >>whole string and checks every character ... >>Its interface provides the means to check whether the last digit ...
    (comp.lang.c)
  • Re: INFINITY Revisited
    ... > What is the difference between a digit string and a character sting? ... nonterminating decimal fraction is that it, uh, has no end (which is ... Seaman said "those are character strings", but of course so are the ... The fact that one can string symbols together is no ...
    (sci.math)
  • Re: How do I - Compile a number into the program
    ... and use a second program to insert that number into the ... add a long string of Chrin a module somewhere. ... replace the first character with your ... first digit, and take the difference of that digit and 127, and add that ...
    (microsoft.public.vb.general.discussion)
  • Re: How do I - Compile a number into the program
    ... and use a second program to insert that number into the ... > add a long string of Chrin a module somewhere. ... replace the first character with your ... > first digit, and take the difference of that digit and 127, and add that ...
    (microsoft.public.vb.general.discussion)