Edit the MD5 algorithm

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi All,

I would like to edit the MD5 algorithm behavior
inside the OpenSSL source code.

Normal MD5:
#echo -n "hello" |openssl md5

#echo -n "XhelloY" |openssl md5

Modified MD5:
#echo -n "hello" |openssl md5

I would like the algorithm add a "X" at the begining of the string and
add a "Y" at the end of the string then perform the MD5 algorithm.

Is it possible?

Thanks for any replies


Re: Edit the MD5 algorithm

cyrustam@gmail.com wrote:
Quoted text here. Click to load it
Yes. Probably at the penalty of an extra malloc/memcpy/free. But why in
Murphy's name would you want to break your system in such a way? Much
easier to just do

$ echo -n "hello" | sed 's/^/X/;s/$/Y/' | openssl md5


Site Timeline