IBM Crypto Education Community

  • 1.  SHA256 with SALT Value

    Posted Tue June 08, 2021 08:21 AM
    Hi, I have an requirement to to generate one Hash of a text using a Fixed Value such as "APPLICATION_1" as SALT. I am able to do the SHA256 without SALT but unable to find the process to do the hashing with SALT.  Is there a manual i can refer for above requirement?

    Thanks
    Mani

    ------------------------------
    Manikandan Dhanabalan
    ------------------------------


  • 2.  RE: SHA256 with SALT Value

    Posted Tue June 08, 2021 08:32 AM
    Hashing with a salt value usually implies the salt is appended either to the beginning or the end of the data being hashed before the hash function is called. Something like HASH(salt || text) or HASH(text || salt). So take the data you wish to hash, generate your salt however your process requires, append the two, and call a one way hash function to generate the hash of the combined data string.

    ------------------------------
    Bob Petti
    ------------------------------



  • 3.  RE: SHA256 with SALT Value

    Posted Tue June 08, 2021 01:19 PM
    Thanks a lot Bob. I was able to get the value.

    ------------------------------
    Manikandan Dhanabalan
    ------------------------------