Function - sha1 (Secure Hash Algorithm-1) function

Consistent Hashing


A sha1 (Secure Hash Algorithm) is an hash function that generates 40-character string (message_digest) composed of hexadecimal characters (0–9 and a–f).

In a file system, it's calculated based on the contents of a file or directory structure (ie several files)

(Secure Hash Algorithm-1) produces a 160-bit digest.

An SHA-1 hash is:

  • a 40 hexadecimal character string.
  • ie 160 bits. (ie 1 hexa goes from 0 to 4 bit to code 0 to 16 character)


sha1 is not a secure hash algorithm. Ref


They compute and check SHA1 message digest.

You can produce it with :


the linux sha1sum utility.

sha1sum myFile
3fc008db425fbe2027f0002f9ae58f9ccec4b08c  myFile


the Microsoft File Checksum Integrity Verifier.

fciv -sha1 thefile.exe
// File Checksum Integrity Verifier version 2.05.
e901af858a964192cec891cdbae76ca6789d741c thefile.exe



openssl dgst -sha1 file


See Hash - Secure Hash Algorithm (SHA)

Discover More
Consistent Hashing
Cryptography - Hash

A hash function is an encryption crypto algorithm that takes as data as input (possibly large and of variable-sized) and produces a short fixed-length integer value (generally printed as an hexadecimal...
Consistent Hashing
File Checksum Integrity Verifier utility tool

A windows command line utility to compute a file digest with a md5 and sha1 hash. fciv...
Git - Blob

blob in git is a object of the blob type that corresponds / represents the file contents (or inodes) in the git file system. file This command will put a blob in the object database where: the...
Git - Hash (Message Digest / Hash Object / SHA1)

git uses as identifier for any object a message digest The hash is known as hash object because the whole git system is based on objects This hash is the unique key that is used in the database It's...
Git - Objects (Database)

An object is the value in the entry of the git database key-value. All entities in git are objects. Objects are the entity of the Git file system. On the operating file system, the objects are stored...
Consistent Hashing
Hash - Secure Hash Algorithm (SHA)

sha algorithm are a family of hash algorithm List of well known SHA and how to calculate them. Hash Family sha1 (not secure) SHA-1 sha224 SHA-2 sha256 SHA-2 sha384 SHA-2 sha512 SHA-2 ...
Hash-based message authentication code (hmac)

HMAC or Hash-based message authentication code is a specific type of message authentication code (MAC) involving: a cryptographic hash function (SHA or MD5) and a secret cryptographic key. private...
What is a UUID - Universally Unique IDentifier - (also known as GUID) ?

UUID (Universally or Global Unique IDentifier) are generated identifiers that are guaranteed to be unique and avoid collision

Share this page:
Follow us:
Task Runner