mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-26 23:13:25 +00:00
Allow password to have non-ASCII characters
This commit is contained in:
parent
284415145c
commit
27b08a8ea2
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ def op_push(i):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Hash = lambda x: hashlib.sha256(hashlib.sha256(x).digest()).digest()
|
def Hash(x):
|
||||||
|
if type(x) is unicode: x=x.encode('utf-8')
|
||||||
|
return hashlib.sha256(hashlib.sha256(x).digest()).digest()
|
||||||
hash_encode = lambda x: x[::-1].encode('hex')
|
hash_encode = lambda x: x[::-1].encode('hex')
|
||||||
hash_decode = lambda x: x.decode('hex')[::-1]
|
hash_decode = lambda x: x.decode('hex')[::-1]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue