用Qt写的加密解密库AES加密

上传者: hss2799 | 上传时间: 2021-04-28 18:46:22 | 文件大小: 2.56MB | 文件类型: RAR
//从文件中读取出内容
QFile file("D:\\testMod\\Toolpath\\top-mark2-1.900");
if (!file.open(QFile::ReadOnly | QFile::Text))
return 0;
QByteArray ba = file.readAll();//文件内容
file.close();

Encrypt*pEncrypt = Encrypt::getInstance(); //获取加密单例
QByteArray outEncryptBa; //加密后的
QByteArray outUncryptBa; //解密后的
pEncrypt->InitializePrivateKey(16, "abc"); //初始化密钥
pEncrypt->OnAesEncrypt(ba, outEncryptBa); //加密
pEncrypt->OnAesUncrypt(outEncryptBa, outUncryptBa);//解密

文件下载

资源详情

[{"title":"( 64 个子文件 2.56MB ) 用Qt写的加密解密库AES加密","children":[{"title":"加密库","children":[{"title":"encryptd.dll <span style='color:#111;'> 64.50KB </span>","children":null,"spread":false},{"title":"common","children":[{"title":"encrypt.h <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false}],"spread":true},{"title":"Encrypt","children":[{"title":"Encrypt.v12.suo <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"Encrypt.sdf <span style='color:#111;'> 10.77MB </span>","children":null,"spread":false},{"title":"Encrypt.pro <span style='color:#111;'> 557B </span>","children":null,"spread":false},{"title":"output","children":[{"title":"encryptd.dll <span style='color:#111;'> 64.50KB </span>","children":null,"spread":false},{"title":"encrypt.dll <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"encrypt.lib <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"encrypt.exp <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"encryptd.exp <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"encryptd.pdb <span style='color:#111;'> 900.00KB </span>","children":null,"spread":false},{"title":"encryptd.lib <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"encryptd.ilk <span style='color:#111;'> 278.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"Encrypt.vcxproj.filters <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"Encrypt.vcxproj <span style='color:#111;'> 12.08KB </span>","children":null,"spread":false},{"title":"release","children":[{"title":"moc_predefs.h.cbt <span style='color:#111;'> 61B </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 233B </span>","children":null,"spread":false}],"spread":true},{"title":"debug","children":[{"title":"moc_predefs.h.cbt <span style='color:#111;'> 59B </span>","children":null,"spread":false},{"title":"encrypt.obj <span style='color:#111;'> 50.10KB </span>","children":null,"spread":false},{"title":"encrypt.vc.pdb <span style='color:#111;'> 76.00KB </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 250B </span>","children":null,"spread":false},{"title":"encryptd.vc.pdb <span style='color:#111;'> 148.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"x64","children":[{"title":"Debug","children":[{"title":"encrypt.obj <span style='color:#111;'> 177.51KB </span>","children":null,"spread":false},{"title":"vc120.pdb <span style='color:#111;'> 492.00KB </span>","children":null,"spread":false},{"title":"Encrypt.log <span style='color:#111;'> 662B </span>","children":null,"spread":false},{"title":"Encrypt.tlog","children":[{"title":"cl.command.1.tlog <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"custombuild.read.1.tlog <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 14.99KB </span>","children":null,"spread":false},{"title":"custombuild.command.1.tlog <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 328B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"Encrypt.lastbuildstate <span style='color:#111;'> 142B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"Encrypt.write.1u.tlog <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"custombuild.write.1.tlog <span style='color:#111;'> 172B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Release","children":[{"title":"encrypt.obj <span style='color:#111;'> 75.35KB </span>","children":null,"spread":false},{"title":"Encrypt.log <span style='color:#111;'> 659B </span>","children":null,"spread":false},{"title":"Encrypt.tlog","children":[{"title":"cl.command.1.tlog <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"custombuild.read.1.tlog <span style='color:#111;'> 222B </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 14.99KB </span>","children":null,"spread":false},{"title":"custombuild.command.1.tlog <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 170B </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 240B </span>","children":null,"spread":false},{"title":"Encrypt.lastbuildstate <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"Encrypt.write.1u.tlog <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"custombuild.write.1.tlog <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":".qmake.stash <span style='color:#111;'> 653B </span>","children":null,"spread":false},{"title":"Encrypt.sln <span style='color:#111;'> 935B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 26.81KB </span>","children":null,"spread":false},{"title":"Makefile.Debug <span style='color:#111;'> 17.11KB </span>","children":null,"spread":false},{"title":"encrypt.h <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"Encrypt.opensdf <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'> 17.09KB </span>","children":null,"spread":false},{"title":"encrypt.cpp <span style='color:#111;'> 22.27KB </span>","children":null,"spread":false},{"title":"Encrypt.vcxproj.user <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"Encrypt.pro.user <span style='color:#111;'> 22.77KB </span>","children":null,"spread":false},{"title":"install.bat <span style='color:#111;'> 236B </span>","children":null,"spread":false}],"spread":false},{"title":"encrypt.dll <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"encrypt.lib <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"encryptd.lib <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"说明.docx <span style='color:#111;'> 125.26KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • strugglenow :
    大神真厉害,注释好详细
    2021-04-19

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明