PlugRailsCookieSessionStore.MessageVerifier (plug_rails_cookie_session_store v2.0.0)
MessageVerifier
makes it easy to generate and verify messages
which are signed to prevent tampering.
For example, the cookie store uses this verifier to send data
to the client. Although the data can be read by the client, he
cannot tamper it.
Link to this section Summary
Functions
Signs a binary according to the given secret.
Decodes and verifies the encoded binary was not tampared with.
Link to this section Functions
Link to this function
sign(binary, secret)
Signs a binary according to the given secret.
Link to this function
verify(binary, secret)
Decodes and verifies the encoded binary was not tampared with.