Security🌐 Server YASAPI k dispozíciiadvanced
Bcrypt hash a overovanie
Generuje a overuje bcrypt hashe s nastaviteľným work factorom.
Spracované cez YAS · neukladá sa
Pripravené na použitieOkamžité spracovanie
Výsledok
—Čo tento nástroj robí?
Generuje a overuje bcrypt hashe s nastaviteľným work factorom.
Kedy ho použiť?
- Chcete overiť zhodu hesla s existujúcim hashom $2a$ / $2b$.
- Pripravujete administrátorský účet.
- Porovnávate náklady kôl 10, 12 a 14.
Reálny príklad
Vstup
Heslo: SecretPassword123!, kolá: 10
Výstup
$2b$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy
Silná soľ a adaptívny work factor.
Vstup → Spracovanie → Výstup → Ďalší krok
- Vstup
- Zadajte heslo a režim (hash / overenie).
- Spracovanie
- Vykoná štandardný bcrypt KDF.
- Výstup
- Hash alebo boolean zhoda.
- Ďalší krok
- Uložte iba hash, nie heslo.
Časté chyby
- Work factor pod 10 v produkcii.
- Heslá dlhšie ako 72 bajtov (bcrypt ich oreže).
- Logovanie surového hesla.
Čo znamená výsledok
Jednosmerný solené heslo alebo verdikt overenia.
Súkromie a bezpečnosť
Your input is sent to YAS infrastructure because the tool requires server-side processing or public network queries. Input is not stored.
API
Endpoint
POST https://yas.sh/api/v1/tools/bcrypt-tester
Request Header
Content-Type: application/json
cURL
curl -X POST "https://yas.sh/api/v1/tools/bcrypt-tester" \
-H "Content-Type: application/json" \
-d '{"password":"SecretPassword123!","mode":"hash","rounds":10}'JavaScript
const res = await fetch("https://yas.sh/api/v1/tools/bcrypt-tester", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"password": "SecretPassword123!",
"mode": "hash",
"rounds": 10
}),
});
const data = await res.json();Python
import requests
r = requests.post("https://yas.sh/api/v1/tools/bcrypt-tester", json={"password":"SecretPassword123!","mode":"hash","rounds":10})
data = r.json()| Field | Type | Required | Description |
|---|---|---|---|
| password | string | Yes | Plaintext password |
| mode | string | No (default hash) | Mode: 'hash' or 'verify' |
| hash | string | No | Bcrypt hash to compare (when mode=verify) |
| rounds | integer | No (default 10) | Salt rounds (4–12) |
Success response
{ "slug": "bcrypt-tester", "mode": "hash", "rounds": 10, "hash": "$2a$10$..." }Hash password or verify plaintext against bcrypt hash.
Error responses
400 VALIDATION_ERROR— invalid input or unsupported option.413 PAYLOAD_TOO_LARGE— input exceeds the 64 KB limit.429 RATE_LIMIT_EXCEEDED— rate limit exceeded (60 req/min).
Limits
- Maximum input: 64 KB per request.
- Rate limit: 60 requests/min per IP address.
- Authenticated accounts benefit from higher tier quotas.
Súvisiace nástroje