MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / publickeyToOnion

Function publickeyToOnion

src/Crypt/CryptRsa.py:37–38  ·  view source on GitHub ↗
(publickey)

Source from the content-addressed store, hash-verified

35 return pub.save_pkcs1("DER")
36
37def publickeyToOnion(publickey):
38 return base64.b32encode(hashlib.sha1(publickey).digest()[:10]).lower().decode("ascii")

Callers

nothing calls this directly

Calls 1

digestMethod · 0.45

Tested by

no test coverage detected