Move to openssl MD5

remove the md5 implimentation
use the openssl's md5 functions