Skip to content

RS256 vs HS256 – Understanding JWT Signing Algorithms #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added content/rs256-vs-hs256/HS256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/rs256-vs-hs256/RS256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/rs256-vs-hs256/Supertokens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
374 changes: 374 additions & 0 deletions content/rs256-vs-hs256/index.md

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions static/blog-seo/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3301,6 +3301,29 @@
"schema": "<script type=\"application/ld+json\"> {\n \"@context\": \"https://schema.org\",\n \"@type\": \"Article\",\n \"mainEntityOfPage\": {\n \"@type\": \"WebPage\",\n \"@id\": \"https://supertokens.com/blog/identity-and-access-management-strategy\"\n },\n \"headline\": \"Discover how to develop an effective Identity and Access Management (IAM) strategy that secures sensitive data, ensures compliance, and streamlines user experiences.\",\n \"image\": \"https://supertokens.com/blog-meta-images/iam-strategy.png\",\n \"author\": {\n \"@type\": \"Organization\",\n \"name\": \"SuperTokens\",\n \"url\": \"https://supertokens.com\"\n },\n \"publisher\": {\n \"@type\": \"Organization\",\n \"name\": \"SuperTokens\",\n \"logo\": {\n \"@type\": \"ImageObject\",\n \"url\": \"https://supertokens.com/static/assets/dark-home/logo.png\"\n }\n }\n }</script>"
},
{
"path": "/blog/rs256-vs-hs256",
"metaTags": [
"<meta name=\"description\" content=\"Compare RS256 vs HS256 JWT algorithms, understand key security differences, and find out which suits your application's needs.\" />",
"",
"<meta name=\"keywords\" content=\"Authentication, Open Source, Authorization, User Management, OAuth, Enterprise SSO, Security\" />",
"<!--OG Tags-->",
"<meta property=\"og:title\" content=\"RS256 vs HS256 - Understanding the Difference in JWT Signing\" />",
"<meta property=\"og:type\" content=\"article\" />",
"<meta property=\"og:url\" content=\"https://supertokens.com/blog/rs256-vs-hs256\" />",
"<meta property=\"og:description\" content=\"Compare RS256 vs HS256 JWT algorithms, understand key security differences, and find out which suits your application's needs.\"/>",
"<meta property=\"og:image\" content=\"https://supertokens.com/blog-meta-images/rs256-vs-hs256-understanding-the-difference-in-jwt-signing.png\" />",
"",
"<meta name=\"twitter:card\" content=\"summary_large_image\" />",
"<meta name=\"twitter:title\" content=\"Compare RS256 vs HS256 JWT algorithms, understand key security differences, and find out which suits your application's needs.\" />",
"<meta name=\"twitter:url\" content=\"https://supertokens.com/blog/rs256-vs-hs256\" />",
"<meta name=\"twitter:image\" content=\"https://supertokens.com/blog-meta-images/rs256-vs-hs256-understanding-the-difference-in-jwt-signing.png\" /> ",
"<!--OG Tags-->",
"<link rel=\"canonical\" href=\"https://supertokens.com/blog/rs256-vs-hs256\">"
],
"title": "RS256 vs HS256 - Understanding the Difference in JWT Signing",
"schema": "<script type=\"application/ld+json\"> {\n \"@context\": \"https://schema.org\",\n \"@type\": \"Article\",\n \"mainEntityOfPage\": {\n \"@type\": \"WebPage\",\n \"@id\": \"https://supertokens.com/blog/rs256-vs-hs256\"\n },\n \"headline\": \"Compare RS256 vs HS256 JWT algorithms, understand key security differences, and find out which suits your application's needs.\",\n \"image\": \"https://supertokens.com/blog-meta-images/rs256-vs-hs256-understanding-the-difference-in-jwt-signing.png\",\n \"author\": {\n \"@type\": \"Organization\",\n \"name\": \"SuperTokens\",\n \"url\": \"https://supertokens.com\"\n },\n \"publisher\": {\n \"@type\": \"Organization\",\n \"name\": \"SuperTokens\",\n \"logo\": {\n \"@type\": \"ImageObject\",\n \"url\": \"https://supertokens.com/static/assets/dark-home/logo.png\"\n }\n }\n }</script>"
},
{
"path": "/blog/top-auth0-alternatives-in-2025",
"metaTags": [
"<meta name=\"description\" content=\"Explore the top Auth0 alternatives for authentication and authorization. Discover solutions like SuperTokens, Okta, and Keycloak to find the perfect fit for your business needs.\" />",
Expand Down
3 changes: 3 additions & 0 deletions static/blog-seo/sitemapconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@
{
"location": "https://supertokens.com/blog/identity-and-access-management-strategy"
},
{
"location": "https://supertokens.com/blog/rs256-vs-hs256"
},
{
"location": "https://supertokens.com/blog/top-auth0-alternatives-in-2025"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading