Hash Function: Revanth M (MY - SC.U3BCA16087)
Hash Function: Revanth M (MY - SC.U3BCA16087)
Done by:-
Revanth M [MY.SC.U3BCA16087]
Hash Function
• A hash function is a mathematical function that converts a numerical
input value into another compressed numerical value.
• The input to the hash function is of arbitrary length but output is
always of fixed length. Values returned by a hash function are called
message digest or simply hash values.
• A hash function h is generated by a function H of the form:
h = H(M)
• Since a hash is a smaller representation of a larger data, it is also
referred to as a digest.
Working Hash Function
Requirements for Hash Functions
1.can be applied to any size message M
2.produces a fixed-length output h
3.is easy to compute h=H(M) for any message M
4.given h is infeasible to find x s.t. H(x)=h
• one-way property
5.given x is infeasible to find y s.t. H(y)=H(x)
• weak collision resistance
6.is infeasible to find any x,y s.t. H(y)=H(x)
• strong collision resistance
Applications of Hash Function
• To create a one-way password file
i.e, Store hash of password not actual password.
• Hash used to detect changes to message.
• Most often to create a digital signature.
• Password verification