# CFX::GET_PASSWORD_HASH

- **Hash:** `0x23473EA4`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetPasswordHash`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_PASSWORD_HASH

## Signature

```c
char* GET_PASSWORD_HASH(char* password);
```

## Parameters

- `password` (`char*`)

## Returns

`char*`

## Usage

### Lua

```lua
local retval = GetPasswordHash(password)

-- always available, by hash
local retval = Citizen.InvokeNative(0x23473ea4, password, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetPasswordHash(password);

// by hash
const retval = Citizen.invokeNative('0x23473ea4', password, Citizen.returnResultAnyway(), Citizen.resultAsString());
```

### C#

```csharp
string retval = Function.Call<string>((Hash)0x23473ea4, password);
```

## See also

- [CFX::VERIFY_PASSWORD_HASH](https://natives.borderlinerp.com/natives/CFX/VERIFY_PASSWORD_HASH.md)

*Sources: Cfx.re native reference.*
