This function was added in SA-MP 0.3.7 R1 and will not work in earlier versions!
Hashes a password using the SHA-256 hashing algorithm. Includes a salt. The output is always 256 bits in length, or the equivalent of 64 Pawn cells.
|password||The password to hash.|
|salt||The salt to use in the hash.|
|ret_hash||The returned hash in uppercase hexadecimal digest.|
|ret_hash_len||The returned hash maximum length.|
The hash is stored in the specified array.
The returned hash has zero padding (i.e. possible prefix 00ABCD123...).
The salt is appended to the end of the password, meaning password 'foo' and salt 'bar' would form 'foobar'. The salt should be random, unique for each player and at least as long as the hashed password. It is to be stored alongside the actual hash in the player's account.
This function is not binary-safe. Using binary values on password and salt might give unexpected result.