

s Hash input as string, even if there is a file with that name. If there is a file at hashme, read and omnihash that file.

List of some popular programs for computing various hashes:Ī tiny little tool to hash strings, files, input streams and network resources using various common hashing algorithms.

Often, they support several hashing algorithms at once they can have additional input and output options (they support different formats and encodings), some of them are prepared for the audit of the file system (detection of unauthorized changes in files). In addition to the listed utilities built into Linux, there are other programs that can calculate various checksums (hashes). The same result can be obtained by the following construction: If you use echo to calculate a hash of a string, it is extremely important to specify the -n option, which prevents the addition of a newline character - otherwise, every hash for strings will be wrong!Īn example of calculating a SHA1 hash for the 'test' string:Ī94a8fe5ccb19ba61c4c0873d391e987982fbbd3 -Īnother way to pass a string without adding a newline:Īs you can see, after the hash there is a space and file name (in the case of standard input - a dash is specified) to show only the hash, you can add | awk '' The usage of all these programs is similar – you must specify a file name, or pass a string to the standard input.

b2sum – в compute and check BLAKE2 (512-bit) message digest.In Linux, there are programs for calculating and validating popular hashes:
