Use digest instead of hexdigest

API doc use $raw_output = true for md5 and sha1 functions
Added rr for stubs