Exemplo n.º 1
0
def test_base58_hash_fail_with_38068692544_6():
    assert base58.hash(38068692544, 6)
Exemplo n.º 2
0
# Base decode encoded string.
print(base36.decode('5K'))
print(base52.decode('3r'))
print(base56.decode('5a'))
print(base58.decode('4T'))
print(base62.decode('3E'))
print(base94.decode('#-'))

# Base hash an integer/long
# Takes an option param, length, which is defaulted to
# basehash.base.HASH_LENGTH
print(base36.hash(200))
print(base52.hash(200))
print(base56.hash(200))
print(base58.hash(200))
print(base62.hash(200))
print(base94.hash(200))

# Base unhash hashed string.
print(base36.unhash('LUEREG'))
print(base52.unhash('bXmcJ8'))
print(base56.unhash('byvT3s'))
print(base58.unhash('cCGYMV'))
print(base62.unhash('bcWuqW'))
print(base94.unhash('Z$_P7y'))

# Get maximum number for hashing by `length`
print(base36.maximum(HASH_LENGTH))
print(base52.maximum(25))
print(base56.maximum(10))
Exemplo n.º 3
0
def test_base58_hash_with_1234567890_10_SUcKRGPB1j():
    assert base58.hash(1234567890, 10) == 'SUcKRGPB1j'
Exemplo n.º 4
0
def test_base58_hash_fail_with_38068692544_6():
    assert base58.hash(38068692544, 6)
Exemplo n.º 5
0
def test_base58_hash_with_1234567890_10_SUcKRGPB1j():
    assert base58.hash(1234567890, 10) == 'SUcKRGPB1j'
Exemplo n.º 6
0
# Base decode encoded string.
print base36.decode("5K")
print base52.decode("3r")
print base56.decode("5a")
print base58.decode("4T")
print base62.decode("3E")
print base94.decode("#-")

# Base hash an integer/long
# Takes an option param, length, which is defaulted to
# basehash.base.HASH_LENGTH
print base36.hash(200)
print base52.hash(200)
print base56.hash(200)
print base58.hash(200)
print base62.hash(200)
print base94.hash(200)

# Base unhash hashed string.
print base36.unhash("LUEREG")
print base52.unhash("bXmcJ8")
print base56.unhash("byvT3s")
print base58.unhash("cCGYMV")
print base62.unhash("bcWuqW")
print base94.unhash("Z$_P7y")

# Get maximum number for hashing by `length`
print base36.maximum(HASH_LENGTH)
print base52.maximum(25)
print base56.maximum(10)
Exemplo n.º 7
0
# Base decode encoded string.
print base36.decode('5K')
print base52.decode('3r')
print base56.decode('5a')
print base58.decode('4T')
print base62.decode('3E')
print base94.decode('#-')

# Base hash an integer/long
# Takes an option param, length, which is defaulted to
# basehash.base.HASH_LENGTH
print base36.hash(200)
print base52.hash(200)
print base56.hash(200)
print base58.hash(200)
print base62.hash(200)
print base94.hash(200)

# Base unhash hashed string.
print base36.unhash('LUEREG')
print base52.unhash('bXmcJ8')
print base56.unhash('byvT3s')
print base58.unhash('cCGYMV')
print base62.unhash('bcWuqW')
print base94.unhash('Z$_P7y')

# Get maximum number for hashing by `length`
print base36.maximum(HASH_LENGTH)
print base52.maximum(25)
print base56.maximum(10)