I have a base32 string which I need to convert to a byte array. And I’m having trouble finding a conversion method in the .NET framework. I can find methods for base64 but not for base32.
Convert.FromBase64String – something like this for base32 would be perfect.
Is there such a method in the framework or do I have to roll my own?
I had a need for a base32 encoder/decoder, so I spent a couple hours this afternoon throwing this together. I believe it conforms to the standards listed here: https://www.rfc-editor.org/rfc/rfc4648#section-6.