Problem 1500. Kryptos - CIA Cypher Sculpture: Vignere Decryption

Solution 2101502

Submitted on 21 Jan 2020 by Allen
  • Size: 38
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
phrase=upper('It was totally invisible Hows that possible? They used the Earths magnetic field X The information was gathered and transmitted undergruund to an unknown location X Does Langley know about this? They should Its buried out there somewhere X Who knows the exact location? Only WW This was his last message X Thirty eight degrees fifty seven minutes six point five seconds north Seventy seven degrees eight minutes forty four seconds west ID by rows'); decoded_exp=phrase(regexp(phrase,'[A-Z?]')); phrase_encoded='VFPJUDEEHZWETZYVGWHKKQETGFQJNCEGGWHKK?DQMCPFQZDQMMIAGPFXHQRLGTIMVMZJANQLVKQEDAGDVFRPJUNGEUNAQZGZLECGYUXUEENJTBJLBQCRTBJDFHRRYIZETKZEMVDUFKSJHKFWHKUWQLSZFTIHHDDDUVH?DWKBFUFPWNTDFIYCUQZEREEVLDKFEZMOQQJLTTUGSYQPFEUNLAVIDXFLGGTEZ?FKZBSFDQVGOGIPUFXHHDRKFFHQNTGPUAECNUVPDJMQCLQUMUNEDFQELZZVRRGKFFVOEEXBDMVPNFQXEZLGREDNQFMPNZGLFLPMRJQYALMGNUVPDXVKPDQUMEBEDMHDAFMJGZNUPLGEWJLLAETG'; word1='KRYPTOS'; word2='ABSCISSA'; decoded= decode_vigenere(phrase_encoded,word1,word2); assert(strcmp(decoded_exp,decoded))

2   Pass
phrase=upper('The fox jumped over the moon'); decoded_exp=phrase(regexp(phrase,'[A-Z?]')); phrase_encoded='VUIPFSBYVQMMWPIMEVPZCVK'; word1='KRYPTOS'; word2='MATLAB'; decoded= decode_vigenere(phrase_encoded,word1,word2); assert(strcmp(decoded_exp,decoded))

3   Pass
phrase=upper('Between the Devil and the deep blue sea'); decoded_exp=phrase(regexp(phrase,'[A-Z?]')); phrase_encoded='SENMEDWTZNDDFIBLNNCHVTEDIBBCEZOA'; word1='AWEIGH'; word2='MATLAB'; decoded= decode_vigenere(phrase_encoded,word1,word2); assert(strcmp(decoded_exp,decoded))

Suggested Problems

More from this Author246

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!