Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def decipher(cipher)
- x = 0
- output = ""
- string = ""
- while (x < cipher.length)
- if cipher[x] != '9' then
- string = string + cipher[x]
- string = string + cipher[x + 1]
- string = string + cipher[x + 2]
- output = output + (string.to_i).chr
- x = x + 3
- else
- string = string + cipher[x]
- string = string + cipher[x + 1]
- output = output + (string.to_i).chr
- x = x + 2
- end
- string = ""
- end
- return output
- end
Advertisement
Add Comment
Please, Sign In to add comment