File: src/Hash/hash.js
/**
Convert text data to SHA-256 Hex code string.
var hex = glesea.toSHA256('1234');
// hex ==> '03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4'
@method toSHA256
@for glesea
@param {String} text
@return {String} hex code string
**/
glesea.toSHA256 = function(text) {
var shaObj = new jsSHA('SHA-256', 'TEXT');
shaObj.update(text);
return shaObj.getHash('HEX');
};
