Crypto-Example
Crypto-Example copied to clipboard
A short, proof-of-concept RSA and AES encryption program with OpenSSL
Thank you for the tutorial. The PR just fixes a bunch of things caught by `cppcheck`. I also converted the c-style casts to cpp-style casts.
so as u know the AES key generates at a size of 64, i would like to encrypt that key with client's RSA public key, so I did, but the...
when I open "#define CONVERT_TO_BASE64" can not decryptFile "Decryption failed"
g++ -Wall -Wextra -ggdb -DUSE_PBKDF -o crypto_example base64.cpp Crypto.cpp crypto_example.cpp -lcrypto Crypto.cpp: 在成员函数‘int Crypto::generateAesKey(unsigned char**, unsigned char**)’中: Crypto.cpp:116:113: erroe :不能将 ‘int EVP_BytesToKey(const EVP_CIPHER*, const EVP_MD*, const unsigned char*, const unsigned...