Sha256 Script

1
0
-1

Hey folks, Looking to do a hash sha256 of a text field in a step.

Any pointers?

Thanks, Jim

2 answers

1
+1
-1
This one is the BEST answer!

sha256hex = org.apache.commons.codec.digest.DigestUtils.sha256Hex(yourString);

This is a solution.

1
0
-1

Hi,

have a look at - http://www.jasypt.org/

Simply the easiest way of en/de-crypting data!

Disclosure: I like it, I'm not part of it.

I found it two days ago and have now done all my text and property files in less than a day.

Works with Groovy and java 1.7.x that I've tested.

regards Seán

Notifications