# Pbkdf2

{% hint style="info" %}
The **`PBKDF2()`** function creates a secure password hash for a password and a salt by using the PBKDF2 hashing algorithm with 1000 iterations.

WIKI: <http://en.wikipedia.org/wiki/PBKDF2>

This function is NOT SQL compatible. For more information about SQL compatibility, see our [documentation](https://docs.wem.io/platform/wemreference/sql-compatibility).

*Hashed values cannot be decoded, usually you check an incoming value against a known value that you hash yourself and check if both values are identical, to verify correctness without knowing the actual value.*
{% endhint %}

{% hint style="success" %}
Returns a text that contains a hash key of 40 characters.\
Returns <mark style="color:red;">unknown</mark> if the salt length is less than 8
{% endhint %}

### Syntax

<details>

<summary><code>Password(</code><mark style="color:blue;"><code>password</code></mark><code>, </code><mark style="color:blue;"><code>salt</code></mark><code>)</code></summary>

`PBKDF2("*Kky32o7","E1F53135E559C253")`\
\&#xNAN;*=> "e28247b343ca7dba657a207efc4c884f582f1b92"*

</details>

### Parameters

<table><thead><tr><th width="164.70825474075613">Name</th><th width="150">Type</th><th width="150" align="center">Required</th><th width="248.15953250810662">Description</th><th data-hidden>Required?</th></tr></thead><tbody><tr><td><mark style="color:blue;"><code>password</code></mark></td><td>text</td><td align="center"><span data-gb-custom-inline data-tag="emoji" data-code="2611">☑️</span></td><td>text containing a password</td><td>yes</td></tr><tr><td><mark style="color:blue;"><code>salt</code></mark></td><td>text</td><td align="center"><span data-gb-custom-inline data-tag="emoji" data-code="2611">☑️</span></td><td>a salt text. The value must be at least 8 characters long. An unknown value is returned if the length is less than 8.</td><td></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wem.io/platform/wemreference/functions/security/pbkdf2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
