首页 > 其他 > 详细

文件加密示例代码

时间:2016-05-29 23:13:19      阅读:214      评论:0      收藏:0      [点我收藏+]
技术分享
#include "stdafx.h"
#include "QuickCryptor.h"
#include <string.h>
#include <iostream>
 
using namespace std;
/**************************************************************
技术博客
http://www.cnblogs.com/itdef/
  
技术交流群
群号码:324164944
  
欢迎c c++ windows驱动爱好者 服务器程序员沟通交流
**************************************************************/
int main()
{
    char buf[24] = "0123456789 this is a test";
    int len = strlen(buf);
    char* key = "DEFTest";
 
    cout << buf << endl;
 
    CQuickCryptor qc;
    qc.Init(key);
    qc.Encrypt(buf,len);
    cout << buf << endl;
    qc.Decrypt(buf,len);
    cout << buf << endl;
 
    return 0;
}
View Code

详情见

http://www.oschina.net/code/snippet_614253_56627

文件加密示例代码

原文:http://www.cnblogs.com/itdef/p/5540498.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!