title: Hash String via SHA-256 in Java
body: <p>By looking around here as well as the internet in general, I have found <a href="http://www.bouncycastle.org" rel="noreferrer">Bouncy Castle</a>. I want to use Bouncy Castle (or some other freely available utility) to generate a SHA-256 Hash of a String in Java. Looking at their documentation I can't seem to find any good examples of what I want to do. Can anybody here help me out?</p>