# Sha1

## Description

Hashes a string using the SHA1 algorithm to produce a 40 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 with DeleteString() when you are done with it.

## Definition

string Sha1( str )

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

## Parameters

- str - The string to hash