Exemplo n.º 1
0
def test_atbash():
    res = decrypt(
        Config().library_default().complete_config(),
        "Svool nb mznv rh yvv zmw R orpv wlt zmw zkkov zmw givv",
    )
    assert res == answer_str
Exemplo n.º 2
0
def test_galactic():
    res = decrypt(
        Config().library_default().complete_config(),
        "⍑ᒷꖎꖎ𝙹 ᒲ|| リᔑᒲᒷ ╎ᓭ ʖᒷᒷ ᔑリ↸ i ꖎ╎ꖌᒷ ↸𝙹⊣ ᔑリ↸ ᔑ!¡!¡ꖎᒷ ᔑリ↸ ℸ ̣ ∷ᒷᒷ",
    )
    assert res.lower() == answer_str.lower()
Exemplo n.º 3
0
def test_base69():
    res = decrypt(
        Config().library_default().complete_config(),
        "kAZAtABBeB8A-AoB8ADBNAhBLA1AFBgA0AXBfBGATAVAFBgAwAWBHB<ACAkA-AnB0AVBnBNBDARAZBiBQAYAtAhBhABA<ArB4AbAMANBDAFAXBfBQAdAOAmArAUAAA2=",
    )
    assert res == answer_str
Exemplo n.º 4
0
def test_plaintext():
    res = decrypt(Config.library_default().complete_config(), answer_str)

    print(res)

    assert res == answer_str
Exemplo n.º 5
0
def test_base91():
    res = decrypt(
        Config().library_default().complete_config(),
        ">OwJh>=/fV@$x88j9ZNKB*ge$yV%lE%ZKi,<d,TX2$0t,,cjPD@JY<UCHRWznuWoQPD",
    )
    assert res.lower() == answer_str.lower()
Exemplo n.º 6
0
def test_decimal():
    res = decrypt(
        Config().library_default().complete_config(),
        "72 101 108 108 111 32 109 121 32 110 97 109 101 32 105 115 32 98 101 101 32 97 110 100 32 73 32 108 105 107 101 32 100 111 103 32 97 110 100 32 97 112 112 108 101 32 97 110 100 32 116 114 101 101",
    )
    assert res.lower() == answer_str.lower()
Exemplo n.º 7
0
def test_base58_ripple():
    res = decrypt(
        Config().library_default().complete_config(),
        "aqY64A1PhaM8hgyagyw4C1Mmp5cwxGEwag8EjVm9F6YHebyfPZmsvt65XxS7ffteQgTEGbHNT8",
    )
    assert res.lower() == answer_str.lower()
Exemplo n.º 8
0
def test_vigenere():
    res = decrypt(Config().library_default().complete_config(),
                  "Rijvs ki rywi gc fco eln M jsoc nse krb ktnvi yxh rbic")
    assert res.lower() == answer_str.lower()
Exemplo n.º 9
0
def test_new_line_at_start_returns():
    # Language Checker should return True by stripping new line
    # but the new line should be returned to the user as new lines are important
    res = decrypt(Config().library_default().complete_config(), "\npass\n")

    assert res.lower() == "\npass\n"
Exemplo n.º 10
0
def test_base58_normal():
    res = decrypt(
        Config().library_default().complete_config(),
        "6qYhNwsP46Mn4gy6gyANfsMm2icAxGFA6gnFjVm9phYHeby7PZm3vthiXxSU77teQgTFGbHETn",
    )
    assert res.lower() == answer_str.lower()
Exemplo n.º 11
0
def leet():
    res = decrypt(
        Config().library_default().complete_config(),
        "|-|3770 my nam3 is 833 and 1 lIke D06 AND 4|>|>13 4 7R33",
    )
    assert res.lower() == answer_str
Exemplo n.º 12
0
def test_XandY():
    res = decrypt(
        Config().library_default().complete_config(),
        "xDDxDxxx xDDxxDxD xDDxDDxx xDDxDDxx xDDxDDDD xxDxxxxx xDDxDDxD xDDDDxxD xxDxxxxx xDDxDDDx xDDxxxxD xDDxDDxD xDDxxDxD xxDxxxxx xDDxDxxD xDDDxxDD xxDxxxxx xDDxxxDx xDDxxDxD xDDxxDxD xxDxxxxx xDDxxxxD xDDxDDDx xDDxxDxx xxDxxxxx xDxxDxxD xxDxxxxx xDDxDDxx xDDxDxxD xDDxDxDD xDDxxDxD xxDxxxxx xDDxxDxx xDDxDDDD xDDxxDDD xxDxxxxx xDDxxxxD xDDxDDDx xDDxxDxx xxDxxxxx xDDxxxxD xDDDxxxx xDDDxxxx xDDxDDxx xDDxxDxD xxDxxxxx xDDxxxxD xDDxDDDx xDDxxDxx xxDxxxxx xDDDxDxx xDDDxxDx xDDxxDxD xDDxxDxD",
    )
    assert res.lower() == answer_str.lower()
Exemplo n.º 13
0
def test_hex():
    res = decrypt(Config().library_default().complete_config(),
                  "48656c6c6f206d79206e616d652069732062656520616e642049206c696b6520646f6720616e64206170706c6520616e6420"
                  "74726565")

    assert res.lower() == answer_str.lower()
Exemplo n.º 14
0
def test_galactic_Xproblem():
    res = decrypt(
        Config().library_default().complete_config(),
        "𝙹 ̇/⎓𝙹∷↸ ℸ ̣ ⍑ᒷ  ̇/ ╎ᓭ ╎リ ℸ ̣ ⍑ᒷ ᒲ╎↸↸ꖎᒷ ℸ ̣ ⍑ᔑℸ ̣ ᓭ ∴⍑|| ╎ℸ ̣  ⎓ᔑ╎ꖎᓭ",
    )
    assert res.lower() == "oxford the x is in the middle thats why it fails"
Exemplo n.º 15
0
def test_base62():
    res = decrypt(
        Config().library_default().complete_config(),
        "2mQvnz9Yevvb7DRCuyDltsP31vJLToR5pjE9orWkzHMUsht2kbC96PLbZ1sdIocsGHENrzC2n",
    )
    assert res.lower() == answer_str.lower()
Exemplo n.º 16
0
def test_base85():
    res = decrypt(
        Config().library_default().complete_config(),
        "87cURD]inB+DtV)AKY].+C\\nn+CT.u+A!\\lBkq9&A8c*'@;]Tu@;p1%AKYE!A0>u7ARt",
    )
    assert res == answer_str
Exemplo n.º 17
0
def test_caesar():
    res = decrypt(Config().library_default().complete_config(),
                  "Uryyb zl anzr vf orr naq V yvxr qbt naq nccyr naq gerr")
    assert res.lower() == answer_str.lower()