2009年7月14日 星期二

Vigenere Cipher

UBYSK FAXNY ELUCM NXIPC IMXMF BFVVF ASQBA TOMLQ HIZLF VXAGV JTZZS FJHMM OITJT SSKRZ TEJSG FOUUF GEXLR BTDMG FWFVX IMWJI ELOGN XQRCG XPGIJ HFFTT QBROT BXFTE FLNMX NAXTL WMLFJ SGFJM LHQWJ HFFBQ JSGHJ QDQDW JWOPA PJGAB KZAOF IPLUZ ASARJ DFFXE TSDHC GXNQJ AFVFA DDMHW EOXMF BEQYW OXJEZ ROEHU XIJWO EAEJR ALCWN SQVJQ FVTMS MAIJF MKJTA QBUAD WIPLM QSMSI JOELX SDIQB ZAHJT YQLUQ DJZSF LVVCA GVMUV FMMZC JHFFA BBVAO TPXYQ BRCIF HUEBB OIBXM XFGGO PAPJE DFZDE PJEFL YWGIM VFGOC NPQVJ HYMXN GVPSE FORJY ZKRVT QPBZC KWRUQ XKLJK ADOIX MOIXK QEDLG ZEHUS GGCGX TUWJT RBHQD BBSIK IHMPJ VRLXN QIZLT WNHUG FSUFO RJEJG RDASQ BMBUF WQXPJ DLJLU OMLSU FAFFE OYOCP AZBFV IMEJK SGBXF MGSKX SJ
(557 characters, including X as spaces)






Encipherment of Vigenere Cipher

Decide a key. 
Repetition of letters in the key would not matter. 
Put all your spaces in the text into X. 
Encrypt the text using letters addition of the letters in the message and the key.

For example,
Text:
ATTACKXATXDAWNKey: 
CHAPCHAPCHAPCH
A=0 B=1 C=2.........
After addition,
A + C = 0 + 2 = 3 = C
T + H = 19 + 7 = 26 = 26 - 26 = 0 = A
.
.
.
And the encrypted cipher would be:
CATPERXPVEDPYU


Method of solving Vigenere Cipher

1. Find out the length of the Key.
Search for repetitive phrases in the enciphered script. Usually an encrypted message would be without hints(key), thus which is YOUR task to reveal it. It is lucky that, without scientific explanation, some phrases are liberately and unliberately repeated. Count the interval between these brilliant discoveries. Analyze from the common factor of the number of intervals and guess the length of the Key.

2. Reveal the Key
Hey! I 've already told you so much. Try yourself to do the remaining part! Get the decipher method from how the encrypted message is created. You will succeed=]

3. Finish the remaining with the Key cracked
Oh ya I think I should provide a simpler tool here(the key is however still found by yourself!):
http://sharkysoft.com/misc/vigenere/
In fact without that I could definitely not finish the encipherment job, or someone may at first think I am brilliant enough to encipher it all by hand? lol


Wish you a happy Summer Holiday with this wonderful cipher system~~






OK我話你知呢一篇entry係一篇為打而打既entry
內容只係Harry Potter第七集既其中一段

唔好亂諗野

繼續閱讀以看答案














*

IXMETXALBUSXDUMBLEDOREXATXTHEXAGEXOFXELEVENXONXOURXFIRSTXDAYXATXHOGWARTSXOURXMUTUALXATTRACTIONXWASXUNDOUBTEDLYXDUEXTOXTHEXFACTXTHATXWEXBOTHXFELTXOURSELVESXTOXBEXOUTSIDERSXIXHADXCONTRACTEDXDRAGONXPOXXSHORTLYXBEFOREXARRIVINGXATXSCHOOLXANDXWHILEXIXWASXNOXLONGERXCONTAGIOUSXMYXPOCKMARKEDXVISAGEXANDXGREENISHXHUEXDIDXNOTXENCOURAGEXMANYXTOXAPPROACHXMEXFORXHISXPARTXALBUSXHADXARRIVEDXATXHOGWARTSXUNDERXTHEXBURDENXOFXUNWANTEDXNOTORIETYXSCARCELYXAXYEARXPREVIOUSLYXHISXFATHERXPERCIVALXHADXBEENXCONVICTEDXOFXAXSAVAGEXANDXWELLXPUBLICIZEDXATTACKXUPONXTHREEXYOUNGXMUGGLES

沒有留言:

張貼留言