Bộ mã hóa & Crypto
Trình tạo JWT (HS256)
Sign a JWT with HMAC-SHA256 — in your browser.
Ghi chú của biên tập viên
Understanding · A signature, not a secret.
Chương phân tích chuyên sâu này hiện chỉ có sẵn bằng tiếng Anh. Công cụ chuyển đổi ở trên hoạt động bằng ngôn ngữ của bạn; bài viết giải thích dài chưa được dịch.
Các câu hỏi thường gặp
Quick answers.
›Is my secret key safe?
Yes. The hashing and signature generation take place entirely within your browser using the Web Crypto API. Your secret key is never sent to our servers.
›What is HS256?
HS256 stands for HMAC with SHA-256. It is a symmetric signing algorithm, meaning the same secret key is used to both create the signature and verify it later.
›Why is the output divided into three parts?
A JWT consists of a header, a payload, and a signature, each separated by a dot. They are Base64Url encoded to ensure they can be safely transmitted in HTTP headers or URLs.
›Can I use this for production tokens?
While technically valid, this tool is intended for debugging and development testing. For production environments, you should use standard libraries to automate token generation within your application code.
Mọi người cũng tìm kiếm
Công cụ liên quan
More in this room.
- Ký JWT (Pro)Tất cả các thuật toán — HS / RS / ES / PS / EdDSA.
- Giải mã JWTGiải mã và kiểm tra mã thông báo JWT — cục bộ, không bao giờ ghi nhật ký.
- Mã hóa / Giải mã Base64Mã hóa và giải mã Base64 — an toàn Unicode.
- Mã hóa / Giải mã URLMã hóa phần trăm và giải mã URL một cách an toàn.
- Trình tạo Hash (SHA-1/256/384/512)SHA-1, SHA-256, SHA-384, SHA-512 — tất cả trong trình duyệt.
- Mã hóa / Giải mã thực thể HTMLThoát hoặc loại bỏ thoát các ký tự đặc biệt của HTML.