Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 335 Bytes

README.rdoc

File metadata and controls

11 lines (8 loc) · 335 Bytes

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