Support md5/sha1/sha256/sha512 -r output.