add md5 and sha1 support