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

时间:2023-05-02 03:26:11
【文件属性】:

文件名称:用Qt写的加密解密库AES加密

文件大小:2.56MB

文件格式:RAR

更新时间:2023-05-02 03:26:11

AES QT 加密 解密

//从文件中读取出内容 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);//解密


【文件预览】:
加密库
----encryptd.dll(65KB)
----common()
--------encrypt.h(3KB)
----Encrypt()
--------Encrypt.v12.suo(24KB)
--------Encrypt.sdf(10.77MB)
--------Encrypt.pro(557B)
--------output()
--------Encrypt.vcxproj.filters(2KB)
--------Encrypt.vcxproj(12KB)
--------release()
--------debug()
--------x64()
--------.qmake.stash(653B)
--------Encrypt.sln(935B)
--------Makefile(27KB)
--------Makefile.Debug(17KB)
--------encrypt.h(3KB)
--------Encrypt.opensdf(20B)
--------Makefile.Release(17KB)
--------encrypt.cpp(22KB)
--------Encrypt.vcxproj.user(629B)
--------Encrypt.pro.user(23KB)
--------install.bat(236B)
----encrypt.dll(22KB)
----lib()
--------encrypt.lib(4KB)
--------encryptd.lib(5KB)
----说明.docx(125KB)

网友评论

  • 编译不过??? 作者在吗 请教一下怎么搞
  • 大神真厉害,注释好详细