paseto-standard / paseto-spec

Specification for Platform Agnostic SEcurity TOkens (PASETO)
195 stars 12 forks source link

Question #31

Closed go-aegian closed 6 months ago

go-aegian commented 1 year ago

What are the pros/cons to use base 64 instead of base 58 for encoding/decoding?

paragonie-security commented 1 year ago

Base58 (which is popularized by Bitcoin) will result in longer tokens, and it's easier to implement base-{2^n} encoding/decoding in constant-time than a base that isn't an even power of 2.