GetPasswordHashBCrypt

From GT-MP
Jump to: navigation, search
GetPasswordHashBCrypt
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#


Hashes a password using the OpenBSD bcrypt scheme.


Syntax

API.getPasswordHashBCrypt(string input);
API.getPasswordHashBCrypt(string input, string salt);
API.getPasswordHashBCrypt(string input, int workFactor);

Required Arguments

- Overload 1:

  • input: password to hash in string type.

- Overload 2:

  • input: password to hash in string type.
  • salt: salt generated by generateBCryptSalt in string type.

- Overload 3:

  • input: password to hash in string type.
  • workload: log2 of the number of rounds of hashing to apply in int type.

NOTE: This function returns data in string type.

Usage example(s)

API.getPasswordHashBCrypt(string input);
API.getPasswordHashBCrypt(string input, string salt);
API.getPasswordHashBCrypt(string input, int workFactor);

Changelog

Version Description
1.638.634 Release.

References