/*********************************************************************
* Author : Samson
* Date : 01/05/2014
* Test platform:
* 3.6.10-4.fc18.i686.PAE
* GNU bash, version 4.2.39
* *******************************************************************/
加密的结果为ascii码的加密与解密:
openssl enc -aes-128-cbc -e -a -in yygy/in.txt -out dj.txt -K c286696d887c9aa0611bbb3e2025a45a -iv 562e17996d093d28ddb3ba695a2e6f58
openssl enc -aes-128-cbc -d -a -in dj.txt -out dedj.txt -K c286696d887c9aa0611bbb3e2025a45a -iv 562e17996d093d28ddb3ba695a2e6f58
加密的结果为二进制文件的加密与解密:
openssl enc -aes-128-cbc -e -in yygy/in.txt -out dj.txt -K c286696d887c9aa0611bbb3e2025a45a -iv 562e17996d093d28ddb3ba695a2e6f58
openssl enc -aes-128-cbc -d -in dj.txt -out dedj.txt -K c286696d887c9aa0611bbb3e2025a45a -iv 562e17996d093d28ddb3ba695a2e6f58
md5:
openssl dgst -md5 dj.txt
* Author : Samson
* Date : 01/05/2014
* Test platform:
* 3.6.10-4.fc18.i686.PAE
* GNU bash, version 4.2.39
* *******************************************************************/
加密的结果为ascii码的加密与解密:
openssl enc -aes-128-cbc -e -a -in yygy/in.txt -out dj.txt -K c286696d887c9aa0611bbb3e2025a45a -iv 562e17996d093d28ddb3ba695a2e6f58
openssl enc -aes-128-cbc -d -a -in dj.txt -out dedj.txt -K c286696d887c9aa0611bbb3e2025a45a -iv 562e17996d093d28ddb3ba695a2e6f58
加密的结果为二进制文件的加密与解密:
openssl enc -aes-128-cbc -e -in yygy/in.txt -out dj.txt -K c286696d887c9aa0611bbb3e2025a45a -iv 562e17996d093d28ddb3ba695a2e6f58
openssl enc -aes-128-cbc -d -in dj.txt -out dedj.txt -K c286696d887c9aa0611bbb3e2025a45a -iv 562e17996d093d28ddb3ba695a2e6f58
md5:
openssl dgst -md5 dj.txt