georgekosmidis / MongoDB.GuidConverter

Base64 encode/decode a GUID as a byte array (useful for MongoDB queries)

Home Page:https://base64guid.azurewebsites.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Base64 Encoding / Decoding GUID bytes with Blazor WebAssembly

Although this converter was created along with the MongoDB Shell or Compass query with a GUID blog post, it is not specifically about MongoDB. On the contrary, it is only about MongoDB if GUIDs are used instead of the native ObjectId().

The problem started because Base64 converters out there are converting the string representation of a GUID to Base64, which is not the same as converting the byte array of a GUID to Base64.

It's made with Blazor WebAssembly so feel free to play around; your browser is doing all the work not my Azure subscription :)

Here is the link: https://base64guid.azurewebsites.net/

And if it is a bit slow on startup, just be a bit patient! The Dev/Test tier doesn't have always on!

About

Base64 encode/decode a GUID as a byte array (useful for MongoDB queries)

https://base64guid.azurewebsites.net/

License:MIT License


Languages

Language:HTML 70.4%Language:CSS 27.0%Language:C# 2.6%