Introduction - If you have any usage issues, please Google them yourself
ECB mode, CBC mode DES encryption and decryption.
1.CBC mode and the general not the same, when the ciphertext data error occurs, the decrypted error byte block and all subsequent blocks all bytes are wrong. The general pattern affects only the current block and the corresponding byte subsequent blocks.
2. You can encrypt the data files of any length, the last block to insufficient data 8bytes, not simply fill 0. Fill zeros when plaintext block end data is 0, when I do not know how to handle the decryption.
3. Compile command:
1. Compile the test program make test.
2. Compile the DLL make libdes.so
3. Compile the static library make libdes.a