//// Created by MyPC on 2021/4/17.//#include <openssl/base64.h>intBase64Encode(constchar*src,intsrc_length,char*encoded){returnEVP_EncodeBlock((unsignedchar*)encoded,(constunsignedchar*)src,src_length);}intBase64Decode(constchar*encoded,intencoded_length,char*decoded){returnEVP_DecodeBlock((unsignedchar*)decoded,(constunsignedchar*)encoded,encoded_length);}