String to Base 64

Hi,

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