Bir JWT, üç base64url bölümünden oluşur: imzalama algoritmasını belirten bir başlık, iddialardan oluşan bir yük ve bir imza. İlk ikisi şifrelenmemiştir - token'ı elinde bulunduran herkes bunları okuyabilir - bu nedenle bunlardan birini çözmek için anahtar veya sunucuya gerek yoktur. Bu işlem sayfada yapılır, token'ın exp iddiasından hala geçerli olup olmadığı belirlenir ve zaman damgaları tarih olarak görüntülenir.
Hiçbir şey yüklenmedi.
Kod çözme işlemi tarayıcınızda gerçekleşir ve token asla ağ üzerinden geçmez. Bu, göründüğünden daha önemlidir: JWT canlı bir kimlik bilgisidir ve üretim token'ını bir sunucuya gönderen bir araca yapıştırmak, kimlik bilgilerinin ifşa edilmesidir. Bu sayfayı yükleyin, bağlantıyı kesin ve yine de çalışır.
Size söyleyemeyeceği şeyler
İmzayı doğrulamaz ve yalnızca token'a sahip hiçbir kod çözücü bunu yapamaz. Doğrulama için imzalama anahtarı gerekir ve bu da tam olarak bir web sayfasına yapıştırmayacağınız şeydir. Çıktıyı "this is what the token claims" olarak okuyun, "this token is genuine" olarak değil; herkes temiz bir şekilde çözülebilen ve hiçbir şeyle imzalanmamış bir JWT oluşturabilir.
Okumaya değer iddialar
exp, geçerlilik süresini ve iat ise yayınlanma zamanını belirtir; her ikisi de milisaniye yerine epoch'tan itibaren saniye cinsinden ifade edilir, bu da çoğu ilk denemeyi bozan 1000'lik sapmaya neden olur. sub, konuyu, aud, hedef kitleyi ve iss ise ihraç edeni belirtir; farklı bir kitle için geçerli bir token, 401 hatasının gerçek ve kolayca gözden kaçan bir nedenidir. Kapsamlar ve roller standartlardan ziyade geleneklerdir, bu nedenle ihraç edenin seçtiği isim altında görünürler.
kıvrım dönüştürücü — Bir curl komutu yapıştırın, aynı isteği dokuz dilde alın: fetch, axios, Python, Go, C#, RestAssured, Playwright, k6 ve HTTPie.
HMAC imza doğrulayıcısı — Webhook imzasını, HMAC-SHA256, SHA-1 veya SHA-512 kullanarak yük ve paylaşılan gizli anahtarla karşılaştırın. Hiçbir şey sayfadan dışarı çıkmaz.
JSON formatter — Pretty-print, minify, sort keys and validate JSON, with the line and column of the first error. Nothing leaves the page.
Base64 encoder / decoder — Encode text to Base64 or base64url and decode it back, UTF-8 safe, with a hex view for binary data. Nothing leaves the page.
UUID generator — Generate random UUID v4 or time-ordered UUID v7 values in bulk, and inspect any UUID’s version and creation time. Nothing leaves the page.
Unix timestamp converter — Convert Unix timestamps to dates and back, with automatic seconds / milliseconds detection. Nothing leaves the page.
JSON diff — Compare two JSON documents by path — added, removed, changed and type-changed values, ignoring key order. Nothing leaves the page.
JSON Schema generator — Infer a draft 2020-12 JSON Schema from a sample response — types, required fields, array items and common formats. Nothing leaves the page.
JSONPath tester — Run a JSONPath expression against your JSON and see every match with its path — wildcards, slices, filters and recursive descent. Nothing leaves the page.
JWT encoder — Build and sign an HS256/HS384/HS512 JSON Web Token for testing, with optional expiry, entirely in the browser. Nothing leaves the page.
Cron expression explainer — Turn a cron expression into plain English and see its next run times in UTC — steps, ranges, lists, names and macros. Nothing leaves the page.
Regex tester — Test a JavaScript regular expression against sample text and see every match, group and named group, with catastrophic patterns stopped safely. Nothing leaves the page.
OpenAPI linter — Check an OpenAPI 3.0/3.1 spec (JSON or YAML) for broken $refs, undeclared path parameters, duplicate operationIds and missing responses. Nothing leaves the page.