def test_base32(self): assert BaseCrack().decode('INUGKY3LKN2HE2LOM4======' )[0] == 'CheckString', "Base32 test failed."
def test_base92(self): assert BaseCrack().decode( '9c&KSm]a;#m/X(')[0] == 'CheckString', "Base92 test failed."
def test_base16(self): assert BaseCrack().decode('436865636B537472696E67' )[0] == 'CheckString', "Base16 test failed."
def test_base85(self): assert BaseCrack().decode( 'Luh4VYg2S`X>Ml')[0] == 'CheckString', "Base85 test failed."
def test_base91(self): assert BaseCrack().decode( 'WXn<v;eYM%Z%xE')[0] == 'CheckString', "Base91 test failed."
def test_base64url(self): assert BaseCrack().decode( 'Q2hlY2tTdHJpbmc')[0] == 'CheckString', "Base64Url test failed."
def test_ascii85(self): assert BaseCrack().decode( '6YL%@CK#=qBl7P')[0] == 'CheckString', "ASCII85 test failed."
def test_base62(self): assert BaseCrack().decode( '6ZOc3cWz3dWiylL')[0] == 'CheckString', "Base62 test failed."
def test_base58(self): assert BaseCrack().decode( 'HiVkR1foHM1ZXjk')[0] == 'CheckString', "Base58 test failed."
def test_base36(self): assert BaseCrack().decode( '45640901731484716')[0] == 'checkstring', "Base36 test failed."
# import the BaseCrack class from basecrack.py from basecrack import BaseCrack # calling the api function decode() with the encoded base result = BaseCrack().decode('c3BhZ2hldHRp') # printing the output """ result is tuple where: result[0] = DECODED STRING result[1] = ENCODING SCHEME """ print('Decoded String: {}'.format(result[0])) print('Encoding Scheme: {}'.format(result[1]))
def test_base100(self): encode = '👫👟👜ðŸ�—👨👬👠👚👢ðŸ�—👙👩👦👮👥ðŸ�—ðŸ‘�👦👯ðŸ�—👡👬👤👧👜👛ðŸ�—👦ðŸ‘👜👩ðŸ�—👫👟👜ðŸ�—👣👘👱👰ðŸ�—👛👦👞ðŸ��' assert BaseCrack().decode( encode )[0] == 'the quick brown fox jumped over the lazy dog', "Base100 test failed."