One-way hash function, also known as one-way hash function and hash function, is a function that changes any input message string into a fixed output string and it is difficult to get the input string from the output string. This output string is called the hash value of the message. Usually used to generate message digest, key encryption, etc.