Reputation: 21
I'm trying to convert a Base64 encoded md5 hash into its hex representation using Ruby.
i.e. "+4aRl0iJ84yd/l1oZcT8ww=="
becomes "fb8691974889f38c9dfe5d6865c4fcc3"
I've tried using the Base64 library, but Base64.decode
doesn't work for my purposes.
I've found a website that works https://base64.guru/converter/decode/hex but I'm not sure how to replicate this in code.
Does anyone know how I can achieve this?
Thank you!
Upvotes: 2
Views: 60