Skip to content

Simple hashing | Basics

Black_Baroness edited this page Sep 1, 2022 · 2 revisions

Hashing has 3 parts:

  • HashSource is "raw material" for hashing algorithm. It can be a file, string or anything that can be converted to bytes.
  • HashAlgorithm is HashSource consumer and HashResult producer.
  • HashResult is result of HashAlgorithm. It can look like a byte array, a string, or anything that can be created from a byte array. In addition, HashResult can be compared with other hashes.

If I want to create a MD5 hash from the "qwerty" password, in my case the objects will be:

  • Source - "qwerty".
  • Algorithm - MD5.
  • Result - "897c8fde25c5cc5270cda61425eed3c8".
Clone this wiki locally