Closed
Description
Function name
SHA256_PassHash(password[], salt[], ret_hash[], ret_hash_len)
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.
Describe the function
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.
The salt is appended to the end of the password, meaning password 'foo' and salt 'bar' would form 'foobar'.
Equivalent in MTA
https://wiki.multitheftauto.com/wiki/Hash
Additional information
https://wiki.sa-mp.com/wiki/SHA256_PassHash