Git Product home page Git Product logo

Comments (7)

aviqbaihaqy avatar aviqbaihaqy commented on April 28, 2024 8

hi, this is support for laravel encrypted cookie?

from cookie-parser.

ebourmalo avatar ebourmalo commented on April 28, 2024 6

I was also looking for this option and didn't find anything. I made a super-easy to use express middleware to achieve transparently cookie encryption / decryption: cookie-encrypter.

var app = express();
app.use(cookieParser(secretKey));
app.use(cookieEncrypter(secretKey));

Hope this helps

from cookie-parser.

Fishrock123 avatar Fishrock123 commented on April 28, 2024

Whenever pillarjs/cookies#42 lands

from cookie-parser.

hex7c0 avatar hex7c0 commented on April 28, 2024

Hi, I write https://github.com/hex7c0/cookie-encryption.
maybe for @jonathanong can be useful for his implementation

from cookie-parser.

FadhiliNjagi avatar FadhiliNjagi commented on April 28, 2024

Hey, I'm going to attempt to add support for cookie encryption. I am also going to modify the README to highlight the difference between signing and encrypting, and to give tips on creating strong keys.

from cookie-parser.

FadhiliNjagi avatar FadhiliNjagi commented on April 28, 2024

I'm trying to add cookie encryption to the main express repo, but I run into this when I go to create a PR:

image

I even created and published a whole npm package just to handle encryption, kind of like cookie-signature. The idea is to add the encryption bit to the main express repo and the decryption bit here. The cookie-encryptor library works, but it is essentially hacking around by creating a middleware that overwrites the res.cookie method. I wanted to add "native" support. Please help.

from cookie-parser.

FadhiliNjagi avatar FadhiliNjagi commented on April 28, 2024

I am now able to open a PR. Must be a one-time thing.

from cookie-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.