OpenSSL EVP API: How to decrypt the encrypted file using a symmetric key file
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I'm working on C on Linux. I have a query related to symmetric key decryption. I have generated an symmetric key using the below command. openssl rand base64 512 > sym.key Using this key ( sym.key ) I have encrypted a file with below command. openssl enc -aes-256-cbc -in temp.txt -out temp.enc -kfile sym.key It has generated an encrypted file temp.enc . Now, I have to use the same key ( sym.key ) with EVP Decrypt API's and have to decrypt this encrypted file. Could any one suggest me a better approach for this. Here is the code unsigned