-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Is it possible to encrypt cookies without using a jar? #132
Comments
This is not possible with the existing API, though it wouldn't be difficult to add this functionality. What do you want to do with the |
Yes I use I also do it in reverse to validate the cookie: let mut jar = CookieJar::new();
jar.add(Cookie::new("my_session", cookie2));
let cookie = jar.private(&key)
.get("my_session")
.map(|c| c.value().to_string()); |
I'd happily accept a PR that adds this functionality in the form of |
Closing due to inactivity. Still happy to accept a PR. |
These methods allow encrypting/decrypting and signing/verifying cookies without using a `PrivateJar` or `SignedJar`. Resolves rwf2#132.
I don't think I need to store cookies. I guess the jar is useful to revoke cookies.
In my case I think I would just prefer not storing them and rotate the key from time to time.
Is this possible?
The text was updated successfully, but these errors were encountered: