Added calc_sha256 function to do a SHA2 hash on a char *