View Single Post
Old 12-30-2014, 11:31 PM   #111
DossarLX ODI
Batch Manager
Game Manager, Song Release Coordinator
Game ManagerSimfile JudgeFFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
DossarLX ODI's Avatar
 
Join Date: Mar 2008
Location: USA
Age: 29
Posts: 14,870
Default Re: 3svgl/rhzp()gz12kmuuzs5fyeseeneymi.

reuben you got the answer a few minutes before I did, dammit haha

For anyone that's interested in what the algorithm was, the shift was +14 except for every third letter. So every third letter was a +13 shift.


Code:
# stupid python 3 program for keyboard caesar shift

# Letter to number
qwerty = {
"q": 0,
"w": 1,
"e": 2,
"r": 3,
"t": 4,
"y": 5,
"u": 6,
"i": 7,
"o": 8,
"p": 9,
"a": 10,
"s": 11,
"d": 12,
"f": 13,
"g": 14,
"h": 15,
"j": 16,
"k": 17,
"l": 18,
"z": 19,
"x": 20,
"c": 21,
"v": 22,
"b": 23,
"n": 24,
"m": 25,
}

# Number to letter
numqwerty = {
0:"q",
1:"w",
2:"e",
3:"r",
4:"t",
5:"y",
6:"u",
7:"i",
8:"o",
9:"p",
10:"a",
11:"s",
12:"d",
13:"f",
14:"g",
15:"h",
16:"j",
17:"k",
18:"l",
19:"z",
20:"x",
21:"c",
22:"v",
23:"b",
24:"n",
25:"m",
}

stringToTest = input("Insert goldstinger string: ")
result = ""
counter = 0
for letter in stringToTest:
    if letter == " ":
        result += " "
        continue
    if counter == 2:
        shift = 13
        counter = 0
    else:
        shift = 14
        counter += 1
    index = qwerty[letter]
    total = index + shift
    if total > 25:
        total = total - 26
    result += numqwerty[total]
    
print(result)


Results in this:
Code:
>>> ================================ RESTART ================================
>>> 
Insert goldstinger string: zm bakcag ova ohvor jezb x fzyt cbk kcl xsg wzanjgn kwxzb vsn ijgnxjb
if anyone can crack this i will pay you one hundred thous and credits
Congratulations reuben!
__________________
Quote:
Originally Posted by hi19hi19 View Post
oh boy, it's STIFF, I'll stretch before I sit down at the computer so not I'm not as STIFF next time I step a file

Last edited by DossarLX ODI; 12-30-2014 at 11:34 PM..
DossarLX ODI is offline   Reply With Quote