Skip to content
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

Encrypted cookie #178

Open
ioness opened this issue Aug 5, 2019 · 4 comments
Open

Encrypted cookie #178

ioness opened this issue Aug 5, 2019 · 4 comments

Comments

@ioness
Copy link

ioness commented Aug 5, 2019

Hello!

Would it be a good idea to save cookies encrypted ?

Cheers

@dead-horse
Copy link
Member

hmmm, I'd like to add encryted cookie in koa, I'll do it when I'm free.

@ioness
Copy link
Author

ioness commented Aug 6, 2019

How exciting!

I found this lib.

https://github.com/nicokaiser/koa-encrypted-session

It uses koa-sessions options ( encode & decode ) to encrypt/decrypt the cookie

@jmitchell38488
Copy link
Contributor

Pull request created for this feature request: #182

@nicokaiser
Copy link

As @ioness already wrote, there is the koa-encrypted-session module that simply provides encode/decode function for koa-session. It is opinionated (i.e. it uses libsodium for encryption and does not let you choose the algorithm), but that way it can be simple and secure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants