ObjectID to shortID (base64) and shortID to ObjectID

Darko Luketic d550538ddf README.md 4 months ago
README.md d550538ddf README.md 4 months ago
go.mod 1cc9caa8be initial 4 months ago
oid64.go 1cc9caa8be initial 4 months ago
oid64_test.go 1cc9caa8be initial 4 months ago

README.md

oid64

oid64 converts from bson ObjectID string to URLencoded base64 string and back.

ObjectIDs are string representations of hexadecimal values. This package converts the hexadecimal strings to binary values and then converts the binary values to base64.

Likewise base64 values are converted to binary values and back to their hexadecimal string representation.

License

GPL 2