GetHashBCrypt

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

Hashes a string using the OpenBSD bcrypt scheme.


Syntax

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

Required Arguments

- Overload 1:

  • input: string to hash in string type.

- Overload 2:

  • input: string 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, int workFactor);

Changelog

Version Description
1.638.634 Release.

References