Crypto 5

Computer Science Level pending

This is the second version of crypto 5; the first one was trash...

For this problem specially, I will place the hint in front.

Hint: Ca e e sar Cipher

vofipaxmtqwkxuw

~thefourseasons


The answer is 4.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Laurent Shorts
Apr 28, 2016

Vigenère cipher with e e as key. Vigenère cipher is like Caesar cipher, with each letter shifted a different amount.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import math
s = 'vofipaxmtqwkxuw'
key = math.e
offset = ord('a')

t = []
for c in s:
        n = ord(c) - offset
        n = (n + 26 - int(key)) % 26 + offset
        t += [ chr(n) ]
        key = key*10 % 10

print "".join(t)

t h e a n s w e r i s f o u s \boxed{\mathrm{theanswerisfous}}

I think the finals s \mathrm s is due to lack of precision in m a t h . e \mathrm{math.\!e} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...