C/C++用OpenSSL库进行Base64编码
摘要:#include <string.h>#include <openssl/pem.h>size_t bc_base64_encode(const void *data, int data_len, char *buffer){ BIO *b64 = BIO_new(BIO_f_base64()); BIO *bio = BIO_new(BIO_s_mem()); bio = BIO_push(b64, bio); BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL); BIO_write(bio, data, data_len); BIO
阅读全文
posted @
2013-01-10 14:32
秋忆
阅读(6204)
推荐(0) 编辑