hashing - TECH-TUTORIALS

TECH-TUTORIALS

Post Top Ad

Responsive Ads Here

hashing

Share This
Hashing

Hashing means generating value or values from a string of text using a mathematical function.




Hashing is one way to enable security during the process of message transmission when the message is intended for a particular recipient only. A formula generates the hash, which helps to protect the security of the transmission against tampering.


When a user sends a secure message, a hash of the intended message is generated and encrypted and is sent along with the message. When the message is received, the receiver decrypts the hash as well as the message. Then, the receiver creates another hash from the message. If the two hashes are identical when compared, then a secure transmission has occurred. This hashing process ensures that an unauthorized end user does not alter the message.


Here is a small example in Python that encrypts "Hello World" in SHA-1 (Secure Hashing Algorithm):


import hashlib

hash_object = hashlib.sha1(b'Hello World')
hex_dig = hash_object.hexdigest()
print(hex_dig)

You will get a long string which is hashed by the SHA-1 algorithm.


Hashing is used to index and retrieve items in a database because it is easier to find the item using the

 shortened hashed key than by using the original value.

5 comments:

  1. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging

    Blockchain Training in Electronic City

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. When juicing soft fruits such as melons, peaches and strawberries it is good to know that the resulting juice will be thicker as opposed to juicing hard fruits such as apples. satta king play bazaar
    play bazaar satta king

    ReplyDelete
  4. GLO devices are not available in the UK at the moment but I could find sticks for this heating system here https://www.cigstore.co/product-category/neo-glo-sticks/. Did anyone tried to buy these sticks form this seller?

    ReplyDelete
  5. Best raw honey from ecological apiary https://www.rawhoneypot.com/. Free international shipping on all orders.

    ReplyDelete

Post Bottom Ad

Responsive Ads Here

Pages