How do I base64 encode (decode) in C?

后端 未结 17 1698
孤城傲影
孤城傲影 2020-11-22 06:27

I have binary data in an unsigned char variable. I need to convert them to PEM base64 in c. I looked in openssl library but i could not find any function. Does any body have

17条回答
  •  孤城傲影
    2020-11-22 06:48

    glib has functions for base64 encoding: https://developer.gnome.org/glib/stable/glib-Base64-Encoding.html

提交回复
热议问题