Skip to content

SHA256_PassHash #22

Closed
Closed
@Disinterpreter

Description

@Disinterpreter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityCompatibility with latest version of SAMPfunctionSAMP functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions