Security101: MessageDigest

Security101: MessageDigest

Message digest is a hash code of a byte sequence (message).It has certain properties that make it very unique and very useful:

  • It has a fixed size (in bytes), which does not depend on the size of the original byte sequence.
  • It is always the same for the same byte sequence.
  • It will change significantly for even slightest changes in the original byte sequence.
  • It is not practically possible to find another byte sequence with the same message digest. Which means, that message digest quite uniquely identifies the original byte sequence. That’s why it is sometimes called “a data fingerprint”.
  • It is impossible to derive the original byte sequence from the message digest.

What can it be used for?

For instance, you could use it if you wanted to verify that the contents of some file hadn’t changed. It is much more time consuming that checking last modified date, but much more reliable.

It can also be used in database tables where the username and password are insecurely stored in plain text. Store the message digest of the password instead of the password text. This way nobody but the user him/herself knows the password, but you still can verify the password for validity.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of