Some people from #massassi were interested in crypt, so I thought I might start something about it.
Simple Translations
A message translated into a numerical code based on simple maths. I thought it would be fun if we encrypted and decrypted messages using basic maths (Don’t worry – nothing hard)
Example:
Each part of the message is broken into 3 letter blocks (I am dog = IAM DOG)
IAM = (8 * 26²) + (0 * 26) + 12 = 5420
DOG = (3 * 26²) + (14 * 26) + 6 = 2398
Where (A = 0, B = 1, C = 2, D = 3… Z = 25), thus D = 3, O = 14, and G = 6.
So thereforce,
I am dog = 5420 2398
Reverse translation is simple, you can use basic algebra or mod functions (the remainder).
Example:
Code is 17575
To get the first letter, 17575 divide by 26² (676) gives you 25 rounded (Z)
Second letter is the remainder of 17575 / 25 to give you 675
675 / 26 = 25 rounded (Z)
Third letter is the remainder of 675 / 25 which should give you 25 (Z) again
Therefore 17575 decrypted is ZZZ.
Some more translations for you to decrypt:
(Code C1): 1041
(Code C2): 3767
(Code C3): 5708 14313 9831 7558
Try and come up with some of your own for other people to decrypt (Remember to break your message into 3 character blocks, and name your codes so people don’t have to quote them).
Edit: my bad.
[This message has been edited by CavEmaN (edited August 25, 2004).]
Simple Translations
A message translated into a numerical code based on simple maths. I thought it would be fun if we encrypted and decrypted messages using basic maths (Don’t worry – nothing hard)
Example:
Each part of the message is broken into 3 letter blocks (I am dog = IAM DOG)
IAM = (8 * 26²) + (0 * 26) + 12 = 5420
DOG = (3 * 26²) + (14 * 26) + 6 = 2398
Where (A = 0, B = 1, C = 2, D = 3… Z = 25), thus D = 3, O = 14, and G = 6.
So thereforce,
I am dog = 5420 2398
Reverse translation is simple, you can use basic algebra or mod functions (the remainder).
Example:
Code is 17575
To get the first letter, 17575 divide by 26² (676) gives you 25 rounded (Z)
Second letter is the remainder of 17575 / 25 to give you 675
675 / 26 = 25 rounded (Z)
Third letter is the remainder of 675 / 25 which should give you 25 (Z) again
Therefore 17575 decrypted is ZZZ.
Some more translations for you to decrypt:
(Code C1): 1041
(Code C2): 3767
(Code C3): 5708 14313 9831 7558
Try and come up with some of your own for other people to decrypt (Remember to break your message into 3 character blocks, and name your codes so people don’t have to quote them).
Edit: my bad.
[This message has been edited by CavEmaN (edited August 25, 2004).]