Desafio Labsec (SGC)
|
Fifth Milestone - Asymmetric Encryption
More...
#include <FifthMilestone.h>
Public Member Functions | |
FifthMilestone () | |
virtual | ~FifthMilestone () |
ByteArray | encryptData (ByteArray &data, Pkcs12 &userP12) |
ByteArray | decryptData (ByteArray &data, Pkcs12 &userP12) |
Fifth Milestone - Asymmetric Encryption
At this point you should have read a little about asymmetric and symmetric cryptography. If you haven't done so, please refer to the Wikipedia website for a brief reading.
For this milestone you will implement data encryption using your public and secret key. The goal is to encrypt the plain text file (same one from milestone one). Understaning asymmetric encryption is the first step to understand Digital Signatures.
SELF EVALUATION (Requires previous milstones to run)
In evaluation folder run '$make fifth'.
You need to implement the evaluation for this milestone.
FifthMilestone::FifthMilestone | ( | ) |
Like any other C++ code, this one needs little hack.
|
virtual |
ByteArray FifthMilestone::decryptData | ( | ByteArray & | data, |
Pkcs12 & | userP12 | ||
) |
TODO Implement this function in the cpp file.
TODO(milestone5)
ByteArray FifthMilestone::encryptData | ( | ByteArray & | data, |
Pkcs12 & | userP12 | ||
) |
TODO Implement this function in the cpp file.
TODO(milestone5)