SHA-1 is a Secure Hash Algorithm that turns any message into a short, fixed-length code called a hash.SHA-1 always produces a 160-bit hash, regardless of the size of the original message.Once a message is hashed using SHA-1, it is impossible to retrieve the original text.SHA-1 is commonly used to protect passwords in social media and other online platforms.