The output of a hash function is typically raw bytes, which are then encoded. Common encodings are base64 or hexadecimal. md5sum, sha1sum, sha256sum, and sha512sum produce their outputs in hexadecimal format. Remember that hexadecimal format prints each raw byte as two hexadecimal digits.
Hash Collision
Hash collision is when 2 different inputs give the same output. Hash functions are designed to avoid this problem and from exploitation. MD5 and SHA1 are considered insecure due to the ability to engineer hash collision .