sha256 with Salt in CDP | Community
Skip to main content
Level 2
January 10, 2025
Solved

sha256 with Salt in CDP

  • January 10, 2025
  • 1 reply
  • 681 views

hi , does anyone know how to salt a sha256 hash in CDP?

 

i see that if i use the sha256 function sha256(string) in the flow mapping it works, but when i add a salt to the function sha256(string,string) it returns as blank.

Best answer by PratheepArunRaj

Hello @marcst4 ,

If salting is a function like hashing, then the function has to be available in CDP Data Prep, right?

If it is not available, I don't think there is an option existing in CDP to salt the hash values.

Thank You, Pratheep Arun Raj B (Arun) | NextRow Digital | Terryn Winter Analytics

1 reply

PratheepArunRaj
Community Advisor and Adobe Champion
PratheepArunRajCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
January 15, 2025

Hello @marcst4 ,

If salting is a function like hashing, then the function has to be available in CDP Data Prep, right?

If it is not available, I don't think there is an option existing in CDP to salt the hash values.

Thank You, Pratheep Arun Raj B (Arun) | NextRow Digital | Terryn Winter Analytics

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
MarcSt4Author
Level 2
January 15, 2025

Hi, I agree with you, I dont think data prep can use a salt for hashing. we ended up salting in apis we wrote to feed the data into CDP, so handled it in code. Its a pity, would be great to be able to provide a series of salt keys and use them for encryption. In our example we needed a hashed value we could use as part of a url (public) which was then de-hashed to expose the values for use in the target system

PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 15, 2025

Agree @marcst4 . You can always raise this as an idea with Adobe.

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics