-
Notifications
You must be signed in to change notification settings - Fork 0
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
isHashSource
consumer andHashResult
producer. -
HashResult
is result ofHashAlgorithm
. 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".