MY BLOGS_
LARAVEL API- JWT
By: MD. Rabiul Karim | Date: 31 Dec 2021 | Read: (2514)
JWT is a Token format standardized by the IETF organization. Detailed information about the standard can be found here. Among the JWT communication systems (eg Mobile, Web, Cloud, IoT, etc.), user identification, verification, and information security, etc. matter.
JWT (JSON WEB TOKEN)
JWT is a Token format standardized by the IETF organization. Detailed information about the standard can be found here. Among the JWT communication systems (eg Mobile, Web, Cloud, IoT, etc.), user identification, verification, and information security, etc. matter.
The Structure of JWT
JWT is composed of 3 separate parts encoded in Base64. These parts are ‘.’ separated by. Separated by “. These parts are:
- Header
- Payload
- Signature
SIGNATURE
This is the part where the Key is used to create the JWT. The header is encrypted with the specified encryption method.
~~~
Except for the signature part of the JWT you produce, the data can be read in it. Simply decode the Base64. But you cannot make any changes to the information in the content because the key will become unusable.
JWT Advantages
Since they are stateless, database operations are not required for users’ information.
- Session management can be done without in-house cookies.
- A single switch can operate on multiple servers.
- Database and so on are much faster because no operations are performed.