String to Base 64


is there a simple way to encode a string in base 64 using Nix?

I tried to dig around, but came empty-handed and attempts at writing my own functions were no more successful.

Thanks a lot

I wrote an encoder a while ago but never got around properly publishing it. Maybe you’d like to give it a try and see if it works for you: Encode to base 64 in pure Nix · GitHub


Works like a charm! Thanks a lot, I was struggling with it the last few days :grinning: