In Linux/Mac, there are binaries available by default to generate the Hash for the input.
> echo -n "abra ka dabra" | md5sum
ed17334f4782a78c727ea4cd7a99d1ac -
> echo -n "abra ka dabra" | sha256sum
55ecd52ce1955819067a5e44686d223405f0bc3e52617a97d5866ff4967d1166 -
> echo -n "abra ka dabra" | sha512sum
6aae7fc3506fb4007e363886ef1df5ffb735bd22c21112ba64d29dd492f20034303a176c2288ed4b49b7d280705f6f47b828243c28da5bee90bffa1e1d7b3501 -
MD5, SHA256 and SHA512 are hashing algorithm, there are many more but these are widely used in the industry. You usually see the checksum/hash when you download the software binaries such as Apache, MySQL, OpenSSL, Python, Golang and many more. You can see wherever we see a download link on these pages, there is also a MD5, SHA256 or SHA512 hash code is also mentioned.
Let's see how we use these libraries for generate CheckSum:
No comments:
Post a Comment