Commit 9e74a3d6 authored by Bhavesh Yadav's avatar Bhavesh Yadav

Added week7

parent efc9d496
......@@ -168,8 +168,8 @@ void hybrid_encrypt(char * symmetric_key_file, char* message_file, char* public_
FILE *C1 = fopen("C1","w");
FILE *C2 = fopen("C2","w");
FILE *IV = fopen("IV","w");
fprintf(C1,"%s",enc_out);
fprintf(C2,"%s",encKey);
fprintf(C1,"%s",encKey);
fprintf(C2,"%s",enc_out);
fprintf(IV,"%s",iv);
fclose(C1);
fclose(C2);
......
openssl dgst <dgstType> <filename>
dgstType : -md5 -sha1 -sha256
\ No newline at end of file
openssl dgst -binary -$1 $2 | xxd -p > dgst1.txt
openssl dgst -binary -$1 $3 | xxd -p > dgst2.txt
diference= cmp dgst1.txt dgst2.txt -l | wc -l
b1d98ede2dfed945f6e54a38bb05b84fc7ac8243e6358486a5ff52638786
a93b
b1d98ede2dfed945f6e54a38bb05b84fc7ac8243e6358486a5ff52638786
a93b
dl;fksdlkfjsdlfkjsdlkfjlskdfjsdlfkjsdlkfjsdlf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment