使用OPEN SSL库使用AES 256加密文件

问题描述

我正在尝试通过openssl加密文件,但出现此错误

Severity    Code    Description Project File    Line    Suppression State
Error   C4996   'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation,use _CRT_SECURE_NO_WARNINGS. See online help for details.   ConsoleApplication1 C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.cpp  43  

解决添加此命令

#define _CRT_SECURE_NO_DEPRECATE 

我得到了这个错误

Severity    Code    Description Project File    Line    Suppression State
Error   LNK2019 unresolved external symbol AES_set_encrypt_key referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl cipher_AES(class std::basic_string<char,class std::allocator<char> >,class std::basic_string<char,class std::allocator<char> >)" (?cipher_AES@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@0@Z)    ConsoleApplication1 C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj  1   

我该怎么办?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)