/usr/share/pyshared/allmydata/util/idlib.py is in tahoe-lafs 1.9.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 | from foolscap import base32
def nodeid_b2a(nodeid):
# we display nodeids using the same base32 alphabet that Foolscap uses
return base32.encode(nodeid)
def shortnodeid_b2a(nodeid):
return nodeid_b2a(nodeid)[:8]
|