node.js - Is SHA-1 length always 40 symbols? -


i'm using crypto lib creating sha1 hash:

crypto.createhash('sha1').update(hashvalue).digest('hex') 

the typical result a9993e364706816aba3e25717850c26c9cd0d89d. hash has length of 40 characters. result have length 40?

sha-1 produces 160-bit (20-byte) hash value known message digest. sha-1 hash value typically rendered hexadecimal number, 40 digits long.

https://en.wikipedia.org/wiki/sha-1


Comments