community-id-spec icon indicating copy to clipboard operation
community-id-spec copied to clipboard

The base64 representation of the ID is clunky to work with

Open ckreibich opened this issue 6 years ago • 1 comments

The standard rendering of the ID (eg 1:ZEYOYMeyZNQC9DAdgsBZCtiTKqw=) is not only not very nice to look at, but can break standard string handling in SIEM pipelines and other tools (so you need to add quotes, for example). A reduced character set would work better here, at the expense of a slightly longer string.

I'm considering moving to something like base58 as a default for version 2 of the ID. Thoughts welcome.

ckreibich avatar Jun 14 '19 18:06 ckreibich

So 20 bytes of SHA1 becomes 28 bytes in Base64, saving 12 bytes compared to hexadecimal at 40 bytes, although with quotes you get to 30. How long would it be in Base58? Is it worth it? Most databases would compress the field content anyway?

sfd avatar Jun 19 '19 04:06 sfd