MD5 is a "Message-Digest" algorithm. MD5 algorithm is used cryptographic hash function and produce 128 bit(16 byte) hash string.
MD5 generated 16 byte hash text format as 32 character hexadecimal string. MD5 has been used for cryptographic application and encryption of secure data and verify data integrity.
SHA1(Secure Hash Algorithm 1) is a cryptographic hash algorithm which is used for encrypt data. SHA1 algorithm produce 160 bit hexadecimal string.
SHA1 algorithm encrypt data and generate 40 digit hexadecimal string. SHA1 was developed by United States National Security Agency.