<html>
<head></head>
<body>
<script type="text/javascript" src="sha256.js">
</script>
<script type="text/javascript"> document.write(sha256_digest("hello world")); </script>
</body>
</html>
客户端用现成的sha256.js做。
下载地址:http://www.bichlmeier.info/sha256.html
原文链接:
http://www.cnblogs.com/elaron/archive/2013/04/09/3010375.html