예제 #1
0
 def test_base32(self):
     assert BaseCrack().decode('INUGKY3LKN2HE2LOM4======'
                               )[0] == 'CheckString', "Base32 test failed."
예제 #2
0
 def test_base92(self):
     assert BaseCrack().decode(
         '9c&KSm]a;#m/X(')[0] == 'CheckString', "Base92 test failed."
예제 #3
0
 def test_base16(self):
     assert BaseCrack().decode('436865636B537472696E67'
                               )[0] == 'CheckString', "Base16 test failed."
예제 #4
0
 def test_base85(self):
     assert BaseCrack().decode(
         'Luh4VYg2S`X>Ml')[0] == 'CheckString', "Base85 test failed."
예제 #5
0
 def test_base91(self):
     assert BaseCrack().decode(
         'WXn<v;eYM%Z%xE')[0] == 'CheckString', "Base91 test failed."
예제 #6
0
 def test_base64url(self):
     assert BaseCrack().decode(
         'Q2hlY2tTdHJpbmc')[0] == 'CheckString', "Base64Url test failed."
예제 #7
0
 def test_ascii85(self):
     assert BaseCrack().decode(
         '6YL%@CK#=qBl7P')[0] == 'CheckString', "ASCII85 test failed."
예제 #8
0
 def test_base62(self):
     assert BaseCrack().decode(
         '6ZOc3cWz3dWiylL')[0] == 'CheckString', "Base62 test failed."
예제 #9
0
 def test_base58(self):
     assert BaseCrack().decode(
         'HiVkR1foHM1ZXjk')[0] == 'CheckString', "Base58 test failed."
예제 #10
0
 def test_base36(self):
     assert BaseCrack().decode(
         '45640901731484716')[0] == 'checkstring', "Base36 test failed."
예제 #11
0
# 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]))
예제 #12
0
파일: tests.py 프로젝트: mufeedvh/basecrack
 def test_base100(self):
     encode = '👫👟👜�👨👬👠👚👢�👙👩👦👮👥��👦👯�👡👬👤👧👜👛�👦👭👜👩�👫👟👜�👣👘👱👰�👛👦👞�'
     assert BaseCrack().decode(
         encode
     )[0] == 'the quick brown fox jumped over the lazy dog', "Base100 test failed."