Open in app
Home
Notifications
Lists
Stories

Write
Imran
Imran

Home

Pinned

Easiest way to create secure and random strings for your JWT, session and cookie secrets.

While in development or even in production, I just find it difficult to come up with secrets for my JWTs, cookies, sessions, etc… I first came across `openssl rand` command in next-auth’s docs. It is as simple as ```bash openssl rand -base64 40 ``` But, can we build on it…

Java Script

2 min read

Easiest way to create secure and random strings for your JWT, session and cookie secrets.
Easiest way to create secure and random strings for your JWT, session and cookie secrets.
Imran

Imran

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable