All protocols done.

added a MD5 digest method in the security class. finished all the
protocols