Skip to content

Change to base62 encoding #1

@srikrsna

Description

@srikrsna

The current implementation uses an optimised Crockford's base32 encoding (A-Z, 0-9) that is url safe. However due to the limited character set the ids are too long and potentially take up more space. It would be nice if it could be changed to a base64 (url safe) but unfortunately we lose the ability to select a the whole id using a cursor because separation characters like '.'

Hence this should be changed to a base62 notation i.e. (A-Z, a-z, 0-9).

Tasks:

  • Add a function to convert []byte to string of base62
  • Add a function to parse string in to a []byte

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions