Thread Closed

simple code

 
Share Thread Thread Tools
May12-04, 01:18 AM   #1
 

simple code


my friend put up a code on his away message and it was easy to figure out just guessing what it would be. then i put one up and i gave every letter in the alphabet a number... a=1, b=2, etc and then used 4x^2 + 2x + 7 to make them into different larger numbers. one of my smarter friends figured it out. i know all you people are a lot smarter than i am so i was wondering if you'd give me some suggestions on making one up that they wouldn't figure out. thanks for any suggestions
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Ants and carnivorous plants conspire for mutualistic feeding
>> Forecast for Titan: Wild weather could be ahead
>> Researchers stitch defects into the world's thinnest semiconductor
May12-04, 12:39 PM   #2
 
Pieroot(i^cx)

where pie is that weird irrational number which goes something liek 3.14... and so on


i is the square root of -1

c is the speed of light

and x is the number you assigned the letter.


that should keep him up for days
May29-04, 07:55 AM   #3
 
not really, its simple as replacing letters with numbers, they will just look for the most common letter ( like E) then the second most common, if u wanna good code goto www.pgpi.com its a Enciption thingy that the us government can't break
May29-04, 08:12 AM   #4
 

simple code


Quote by Gelsamel Epsilon
not really, its simple as replacing letters with numbers, they will just look for the most common letter ( like E) then the second most common, if u wanna good code goto www.pgpi.com its a Enciption thingy that the us government can't break
I wouldn't say that, that kind of analysis is only worthwhile when you have enough data to work with. You can't use that method to break the code when all you have is "Hi guys, I'll be back in a couple of days". The most common letters there are L, A and I.
May29-04, 08:27 AM   #5
 
Why not just use RSA but with a relatively small composite number? One that would not take 1,700 computers and 8 months to crack...
May29-04, 10:57 AM   #6
 
Recognitions:
Gold Membership Gold Member
Science Advisor Science Advisor
I really don't know a great deal about codes but you could try using to variable rather than one, for example the postion of the letter in the code.
May29-04, 01:28 PM   #7
 
Quote by dusty8683
I was wondering if you'd give me some suggestions on making one up that they wouldn't figure out.
Translate it to Chinese and assign each Chinese character to a LISP function. Compile and run the program and encode the output by using it as a seed to a random number generator. Then subtract one.
May30-04, 09:43 AM   #8
 
the US government will take over 52 million years to crack Pgp's code fopr 1 person!!
May30-04, 10:02 AM   #9
 
The US government has a quantum computer that is capable of breaking any PGP code in a matter of minutes. Oops, did I say that out loud?
May31-04, 10:51 PM   #10
 
Quote by Riko
Pieroot(i^cx)

where pie is that weird irrational number which goes something liek 3.14... and so on


i is the square root of -1

c is the speed of light

and x is the number you assigned the letter.


that should keep him up for days

uuh
Sqrt of -1 = ERROR
and its Pi, not Pie, and if u put i = sqrt of 1, the answer is 1 and therfore

(22/7)x root of 1^((3 x 10^8)x the number)

1 to the power of anything is 1 and the sqrt of 1 is 1 so 22/7 x 1 = 22/7

so every letter will come up as 22/7 so that doesn't work
Jun1-04, 02:13 AM   #11
 
Quote by Gelsamel Epsilon
uuh
Sqrt of -1 = ERROR
and its Pi, not Pie, and if u put i = sqrt of 1, the answer is 1 and therfore

(22/7)x root of 1^((3 x 10^8)x the number)

1 to the power of anything is 1 and the sqrt of 1 is 1 so 22/7 x 1 = 22/7

so every letter will come up as 22/7 so that doesn't work
I do suggest you understand what you're talking about before talking about it.
Jun1-04, 02:16 AM   #12
 
So whats the Sqrt of -1 chen?
Jun1-04, 02:35 AM   #13
 
It is i. Do you not believe this just because your calculator says it's an error to the take the square root of -1?
Jun1-04, 06:33 AM   #14
 
If you are still interested in cryptography, there are a number of books on the subject.

For starters, try Cryptanalysis by Helen Fouché Gaines, 1939, which describes some of the basics of this field.

Next, try Cryptanalysis for Microcomputers by Caxton C. Foster, 1982. I think computers are here to stay, so you may as well read up on the subject.

And then may I suggest 'Mathematical Cryptology for Computer Scientists and Mathematicians' by Wayne Patterson printed in 1987.

More items for you would be cryptographers:

Desirable characteristics of an encryption system:

The system must not increase the length of the message. If each character is converted to a ten digit number, pretty soon you will run out system capacity. The system must not be vulnerable to the loss or modification of one or more of the characters. If you have noise hits on the line, you may tolerate the loss of one or two characters, but it should not cause the entire message to be lost.

Modern encryption systems must be capable of handling massive amounts of data, so an attractive approach would modify each character by adding a digit from some infinite sequence such as pi or the national debt.

More bibliography:
Infinite Sequences and Series, Konrad Knopp
The Beale Papers, Library of Congress, 1885
Handbook of the Beale Ciphers, Per A. Holst
Fibonacci Numbers, N. N. Vorob'ev
The Decipherment of Linear B, John Chadwick
Cryptography, the science of secret writing, Laurence Dwight Smith
and of course, The Code Book, Simon Singh
Jun1-04, 07:48 PM   #15
 
Recognitions:
Gold Membership Gold Member
Science Advisor Science Advisor
Retired Staff Staff Emeritus
Also the "Code Book" by Simon Singh...a very easy read, being fun and instructive at the same time.
Jun1-04, 08:02 PM   #16
 
Recognitions:
Gold Membership Gold Member
Science Advisor Science Advisor
Retired Staff Staff Emeritus
Here's a simple trick that makes it harder to crack your code, especially for messages that are not huge : assign different numbers to each letter but assign more than one number as possible replacements for some of the less used letters.

Example :
a= 7
b=3,9
c =13, 5
d=11,8,2
e=15
f=1,10
.....
.....
q=4,6,12,17,19,33,27
and so on

This way, it's much harder to use "frequency analysis" to crack to code.

Also, the act of thinking up some polynomial function to make the numbers large does nothing to increase the difficulty of cracking the code. This is a wasted step.
Jun1-04, 09:04 PM   #17
 
Quote by Chen
It is i. Do you not believe this just because your calculator says it's an error to the take the square root of -1?
So, go and make a message using that code, it wont work because u will have it like this

(22/7) x sqrt of ( i ^ (3 x 10^8) x) will = for any number of the letter the code will end up as if a = 26

(22/7) x sqrt of ( i ^ (3 x 10^8 )26)

that will be what will come up for A!!, so why dont you go and write a message using that formula :-/
Thread Closed
Thread Tools


Similar Threads for: simple code
Thread Forum Replies
Convert latex code to fortran code? Math & Science Software 1
Why does this code not do what it should Programming & Comp Sci 6
Pi Code General Discussion 7
(simple)C++ questions about a piece of code Computing & Technology 9
Code Brain Teasers 0