Is there a way to hash a string in groovy with SHA-256 algorithm? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Is there a way to hash a string in groovy with SHA-256 algorithm?

Received Response
13
Views
2
Comments
in Sales 2 comments

Summary:

How to hash a string in Groovy?

Content (please ensure you mask any confidential information):

Hi Team,

Our customer asks us to hash the contact email value with SHA-256 algorithm. Is this possible in groovy?

I tried the hashCode() function but it doesn't seem to be a SHA-256 algorithm as the return value is like -1590332714 and not with 256 char in hexadecimal.

Thanks

Version (include the version you are using, if applicable):

Oracle Fusion Cloud Applications 24A (11.13.24.01.0)

Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!