A decryption algorythym written in ruby