Thursday, 6 December 2012

Cryptography :)

In maths we've been learning about cryptography. We watched the film National Treasure to give us an insight into Cryptography. Unfortunately we didn't get to steel the declaration of independence however we did learn a good bit about cryptography. Cryptography is when you encrypt messages so that only a specific person can read it and also we've been learning how to decipher encrypted messages. It took us a while to get used to cipher text and plain text but when we did, we had good fun deciphering messages.

So to encrypt a message using a Caesar shift cipher.....
1. The alphabet is numbered from 0-25 and each letter has a corresponding number.
2. You decide to add for example 3 to each letter, so say you have "HI".... H=7 so when you add 3 you get 10 so H becomes K (as K=10) and I=8 and when you add 3 you get 11 and so I becomes L (as L=11)
so your encrypted message is.... KL
3. So if  you want to decipher a message and you know 3 has been added to encrypt it you just take 3 away and so KL will become HI

See If you can decipher this? :)
 I added 3 to each letter... A=0 and Z=25, if you go past Z when adding 3 just continue on counting with A

ODVW GDB RI ZRUN HASHULHQFH ZDV BHVWHUGDB! :(

good luck :)

Link

No comments:

Post a Comment