- Renamed
rails5
format torails_4
and addedrails_5_1
format for decoding authenticated & encrypted session cookies used by Rails 5.1+. - Changed the result of any decrypt method to include the cookie format detected to allow disambiguation between randomly decrypted sessions for further processing.
- Minimal platform requirement moving up to OTP 22 due to use of new crypto API.
- Added support for Rails 5.1+ session decoding.
- Added
auto
format for automatically infering the Rails version from the cookie format. - Added
infer_rails_version/1
for programatically inferring Rails version from a cookie payload. - Added crypto properties for specifying custom salts, HMAC algorithms and ciphers, to support non-default Rails configurations.
- Added config for use with rebar3.
- Added .gitignore, GitHub workflow and simple test for ensuring correct behaviour.
- Added types and specs for API methods.
- Initial proof of concept library with working Rails 4 decryption and verification.