Public key and Private key: Difference in the context encryption and signing (JWT)

What is  Public Key and Private Key ?

The use case of Public Key and Private Key in Signing and Encryption ?


For Signing (JWT):

  • Private key is owned by the issuer. The issuer use the private key to make signature
  • Public key can be share with all parties that need to verify the signature 

For Encryption: 

  • Private key is owned by the recipient. Private key use to decrypt data
  • Public key can be shareed to any party that want to send sensitive data to the reciptient. Public key use to encrypt data


Public key and Private key: Difference in the context encryption and signing (JWT)






Nhận xét

Bài đăng phổ biến từ blog này

TypeORM should using repository or query buider ?

Type of children prop in React Typescript

MSAL: Difference between Public Client Application And Confidential Client Application