Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rack middleware that provides tamper-proof cookies
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION

README.rdoc

Rack::Tamperproof

Usage

use Rack::Tamperproof(:default_key => "123u9ew90uqn") do
  delete_for :just_delete_this
  exception_for :don_t_tamper
end

# delete_for cookies will delete if they are tampered with and your request passes through normally
# exception_for produces an exception if the cookie is tampered with
Something went wrong with that request. Please try again.