openssl c++ 3des ecb 加密

对接外部合做方,用到了3des ecb 加密,其中的补全方式为 PKCS5Padding。具体的算法原理能够网上找,网上不少,可是代码的坑比较多。 直接上实现后的代码了: int Des3EdsEncrypt(const std::string& rand_key, const std::string& in, std::string& out) { char out_array[10240];
相关文章
相关标签/搜索