# Sha256

## Description

Hashes a string using the SHA256 algorithm to produce a 32 character hexadecimal string. This is a one way hash function that can be used with salting (appending a secret string) for passwords or tamper detection in parameters passed to a server. If you are calling this function from Tier 2 then you must delete the returned string with agk::DeleteString when you are done with it.

## Definition

string Sha256( str )

char* agk::Sha256( const char* str )

## Parameters

- str - The string to hash