#include <stdio.h> #include <stdlib.h> #include <string.h> struct base64{ unsigned d1:6; unsigned d2:6; unsigned d3:6; unsigned d4:6; }; int main() { char buf……