Skip to content

PBKDF2 Password Generation

1. Basic Usage

TIP

The server will not log any of your requests or compromise your privacy! All password generation is performed in memory with no disk storage, ensuring zero-knowledge security.

Base API URL:

txt
https://zeapi.ink/v1/api/pbkdf2

Generate a unique PBKDF2-based password using the following URL or POST request:

txt
https://zeapi.ink/v1/api/pbkdf2?master_password=mysecret&website_name=example.com&algorithm=sha256&iteration_length=10000&key_length=32

Or send JSON data via POST request:

json
{
    "master_password": "mysecret",
    "website_name": "example.com",
    "algorithm": "sha256",
    "iteration_length": 10000,
    "key_length": 32
}

Shell request example:

shell
curl -X POST https://zeapi.ink/v1/api/pbkdf2 \
-H "Content-Type: application/json" \
-d '{
    "master_password": "mysecret",
    "website_name": "example.com",
    "algorithm": "sha256",
    "iteration_length": 10000,
    "key_length": 32
}'

2. Request Parameters

ParameterTypeRequiredDefault ValueDescription
master_passwordstringYesNoneUser's master password for generating a unique password
website_namestringYesNoneTarget website name or domain, used to generate the salt
algorithmstringNosha256PBKDF2 encryption algorithm, supports sha256, sha512
iteration_lengthintNo10000PBKDF2 iteration count, recommended to be at least 1000
key_lengthintNo32Generated password length (in bytes), recommended 16-64

3. JSON Response Format

Success response example:

json
{
    "status": "success",
    "password": "generated_base64_encoded_password",
    "algorithm": "sha256",
    "iteration_length": 10000,
    "key_length": 32
}

Error response example (missing master password or website name):

json
{
    "status": "error",
    "message": "Master password and website name are required"
}

Error response example (unsupported algorithm):

json
{
    "status": "error",
    "message": "Unsupported algorithm"
}

Error response example (invalid iteration length or key length):

json
{
    "status": "error",
    "message": "Invalid iteration length or key length"
}

4. Response Fields Description

FieldTypeDescription
statusstringRequest status (success/error)
passwordstringGenerated password (base64 encoded)
algorithmstringEncryption algorithm used (sha256/sha512)
iteration_lengthintPBKDF2 iteration count
key_lengthintGenerated password length (in bytes)
messagestringOperation result message (returned only on error)

Released under the MIT License.