Function calculateSHA256Hash