[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #31333 [Core Tor/Tor]: reduce fingerprints len by 32.5% to reduce descriptors size
#31333: reduce fingerprints len by 32.5% to reduce descriptors size
------------------------------------+------------------------------
Reporter: cypherpunks | Owner: (none)
Type: enhancement | Status: new
Priority: Low | Component: Core Tor/Tor
Version: Tor: unspecified | Severity: Normal
Keywords: fingerprint descriptor | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
------------------------------------+------------------------------
I have read proposals to reduce descriptor size and found fingerprints use
SHA1, why not use base64 for them to change for example:
moria relay:
SHA1:
{{{
string(40) "9695DFC35FFEB861329B9F1AB04C46397020CE31"
}}}
base64 without trailing padding:
{{{
string(27) "lpXfw1/+uGEym58asExGOXAgzjE"
}}}
pseudocode for example:
{{{
substr(base64_encode(hex2bin('9695DFC35FFEB861329B9F1AB04C46397020CE31')),0,27)
}}}
results into 32.5% less fingerprints stringlen.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31333>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs