Implemented sha256 function.