أنشئ ووقّع رموز JWT بخوارزمية HS256 من حمولة وسر، بالكامل داخل متصفحك.
كيفية استخدام مولّد JWT
حرّر الحمولة ككائن JSON.
أدخل سرّ HS256 الخاص بك.
ولّد وانسخ الرمز الموقّع.
A JWT generator that builds and signs JSON Web Tokens from your payload and secret, entirely in your browser using the Web Crypto API. It pairs with the JWT decoder, which inspects an existing token.
A JWT has three parts separated by dots: a header, a payload of claims, and a signature, each Base64url encoded. The signature is what makes the token trustworthy: it proves the payload has not been altered and was issued by someone who holds the secret.
This tool signs with HS256, that is HMAC using SHA-256, the most common symmetric JWT algorithm. The same secret both signs and verifies the token, so it must be kept private on the server.
For HS256, use a long, random secret. A short or guessable secret undermines the whole token, since anyone who guesses it can mint valid tokens of their own.
An important point about JWTs: the payload is only encoded, not encrypted. Anyone with the token can read its claims by Base64-decoding them, so never put passwords or sensitive data in a JWT. The signature stops tampering, it does not provide secrecy.
Because signing happens locally, your secret and payload never leave your device. Even so, avoid pasting real production secrets on a shared or public computer.
الأسئلة الشائعة
HS256 (HMAC مع SHA-256)، وهي أكثر خوارزميات JWT المتماثلة شيوعا، موقّعة في متصفحك باستخدام واجهة Web Crypto.
لا. يجري التوقيع بالكامل داخل متصفحك، لذا لا يغادر السر والحمولة جهازك أبدا. ومع ذلك، تجنب أسرار الإنتاج الحقيقية على الأجهزة المشتركة.
نعم، استخدم أداة فك ترميز JWT لفحص الترويسة والحمولة لرمز موجود.
ضمّن هذه الأداة
أضف هذه الأداة إلى موقعك الخاص. انسخ المقتطف أدناه، ويبقى محدّثاً تلقائياً.
<iframe src="https://monu.tools/embed/ar/jwt-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>أدوات ذات صلة
ابحث واطّلع على رموز حالة HTTP ومعانيها، من 1xx إلى 5xx.
حوّل ملف .env إلى JSON و JSON إلى .env، في الاتجاهين، بالكامل داخل متصفحك.
ولّد HMAC لرسالة ومفتاح سري باستخدام SHA-1 أو SHA-256 أو SHA-384 أو SHA-512، داخل متصفحك.
جزّئ كلمة مرور باستخدام bcrypt وتحقق من كلمة مرور مقابل تجزئة bcrypt، بالكامل داخل متصفحك.