You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We succeeded to do the hashing with a query in a postgre database that has digest extension, but this is not a proper solution.
It would be nice if we could do this using groovy.
Can you please check if it is possible?
Let me know if you need more information.
Regards,
Hanane
The text was updated successfully, but these errors were encountered:
Hello,
Using a getFromGroovy property, I tried to use digest method in order to hash a string using SHA-256 but I get an error message:
Groovy evaluation error: java.util.concurrent.ExecutionException: groovy.lang.MissingMethodException: No signature of method: java.lang.String.digest() is applicable for argument types: (java.lang.String) values: [SHA-256]
Possible solutions: getAt(java.lang.String), toSet(), toList(), next(), size(), size()
here is the execution on groovy console:
Code:
def value='string to hash'
// We can provide hash algorithm with digest method.
def sha256 = value.digest('SHA-256')
Output:
4904d96e05c2ba8ab5e28bfba3c31c2ca0ea6da94aa4245e79ee47107dbb683e
We succeeded to do the hashing with a query in a postgre database that has digest extension, but this is not a proper solution.
It would be nice if we could do this using groovy.
Can you please check if it is possible?
Let me know if you need more information.
Regards,
Hanane
The text was updated successfully, but these errors were encountered: