Skip to content

Enabler-AS/JWT-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

JWT generator

An open-source JSON Web Token (JWT) generator created by enabler
View Demo · Report Bug


JWT generator allows you to generate JWT in an easy way!
We created a form with inputs, so you can easly pass in the data and create a signature using HS256 algorithm.

JWT generator


What is JSON Web Token?

JSON Web Token is a token-based standard that allows us to securely transfer information between two parties as a JSON object. The tokens are signed using cryptographic algorithm, either using a private secret (HMAC algorithm) or a public/private key (RSA).

JWT consists of three parts seperated by dots ( . ), which are:

So a JWT typically looks like:

xxxxx.yyyyy.zzzzz

Header

The header usually consists of two parts:
  • algorithm used for signing, ex. HS256
  • type of the token, which is JWT.


Then, this JSON is Base64Url encoded to form the first part of the JWT.


Payload

The payload contains the claims, which are statements about an entity (usually user) and additional data.



The payload is then Base64Url encoded to form the second part of the JWT.


Signature

The signature is created by signing the encoded header that is providing the algorithm, encoded payload with all the data and the secret (symmetric or asymetetric dependent on which algorithm is used).



The signature is used to ensure that the message was’t changed in the way. The party that creates the JWT signs the header and payload with a secret that is known to both the issuer and receiver, or with a private key known only to the sender. When the token is used, the receiving party verifies that the header and payload match the signature.



The output is three Base64 strings separated by dots that can be easily passed in HTML and HTTP environments, while being more compact compared to XML-based standards such as SAML.


When should we use JWT?

  • Authentication
  • Information Exchange

Built With

Project was built with React.js and TypeScript


Contact

Logo

Enabler AS is a newly started tech company based in Fredrikstad(Norway).

Enabler is established to create the workspace we have always wanted. It lies in creating unique and good products together with our skilled colleagues with a common set of values. Just as we are concerned with equal values, we are concerned with different perspectives, experiences and backgrounds. We believe that everyone has something to contribute.
Our name has been chosen because we want to "enable" the potential that lies in the optimal use of technology.


Contact us via:


(back to top)