Is there a way to hash a string in groovy with SHA-256 algorithm?
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):
Tagged:
0