Expand description
§rails-cookie-parser
rails-cookie-parser is a decryption library for cookies generated by Rails.
§Example
use rails_cookie_parser::RailsCookieParser;
let rcp = RailsCookieParser::default();
rcp.decipher_cookie("test--foo--bar");
Has been tested to work with session cookies generated in Rails 5 up to 7.
I put a few more examples in the README, and in the unit tests.
§Errors
The return type is Result<String, ParseCookieError>
.
If an error happens in the process of decrypting a cookie, an error variant
will be returned. See ParseCookieError
for more details.
Structs§
- Base object and structure
Enums§
- Hash digest
- Errors that can happen when decrypting your cookies