Using SHA256 to Secure Passwords
Some code snippets to generate SHA hash from a entered password then check that hash against another hash.
HTML
<script src="http://www.bichlmeier.info/sha256.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css">
<label id='storedSHA'></label>
<div class="input-prepend">
<span class="add-on">To Be Hashed</span>
<input class="span11" id="input" type="text"></input>
<input class="span11" id="input2" type="text"></input>
</div>
JavaScript
$("input").keyup( function () {
var value = $(this).val();
console.log(sha256_digest(value))
$("#input2").val(sha256_digest(value).toUpperCase());
}).keyup();