Exemplo n.º 1
0
    def test_column_decipher2(self):
        expected = "AMIDSUMMERNIGHTSDREAM"
        encrypted = "SIEIRDDNRMHMUGAAMTMES"
        key = "SWINDON"

        result = Cipher.column_decipher(encrypted, key)
        self.assertEquals(expected, result)
Exemplo n.º 2
0
    def test_column_decipher(self):
        expected = "PIERWSZYM PARAMETREM SZYFRU KOLUMNOWEGO JEST LICZBA"
        encrypted = "RROAFGAPYEB ZWZMSOCY NIZMMLSEU WRLTRTOSEEKEIM JPAU "
        key = "JIHGFĘEDĆCBĄA"

        result = Cipher.column_decipher(encrypted, key)
        self.assertEquals(expected, result)