karthik
05-25-2004, 01:44 AM
Hi everyone,
I am doing some cryptographic calculations and wish to store the MD5 value of a file in a variable. I am implementing the program in c++ on linux with gcc 3.3.1 on it.
I need to do a byte comparison of this value stored in the variable with the freshly computed MD5 value of the file during the execution of the program.
I am lost on how to store this value inside the program and use bcmp() on it. I could do it dynamically but i want to store the value in a variable inside the program itself.
Any pointers and help would be really helpful.
TIA
Karthik
I am doing some cryptographic calculations and wish to store the MD5 value of a file in a variable. I am implementing the program in c++ on linux with gcc 3.3.1 on it.
I need to do a byte comparison of this value stored in the variable with the freshly computed MD5 value of the file during the execution of the program.
I am lost on how to store this value inside the program and use bcmp() on it. I could do it dynamically but i want to store the value in a variable inside the program itself.
Any pointers and help would be really helpful.
TIA
Karthik