Beispiel #1
0
def test_base36_unhash_with_FT9Q9O71KI_1234567890():
    assert base36.unhash('FT9Q9O71KI') == 1234567890
Beispiel #2
0
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))
print(base58.maximum())
print(base62.maximum(4))
print(base94.maximum(50))
Beispiel #3
0
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)
print base58.maximum()
print base62.maximum(4)
print base94.maximum(50)
def test_base36_unhash_with_FT9Q9O71KI_1234567890():
    assert base36.unhash('FT9Q9O71KI') == 1234567890
Beispiel #5
0
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)
print base58.maximum()
print base62.maximum(4)
print base94.maximum(50)