Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

sha256 with Salt in CDP

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

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

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor and Adobe Champion

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

Avatar

Level 2

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

Avatar

Community Advisor and Adobe Champion

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