Plug.Crypto.MessageVerifier

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. The data can be read by the client, but cannot be tampered with.

Source

Summary

sign(binary, secret)

Signs a binary according to the given secret

verify(binary, secret)

Decodes and verifies the encoded binary was not tampared with

Functions

sign(binary, secret)

Signs a binary according to the given secret.

Source
verify(binary, secret)

Decodes and verifies the encoded binary was not tampared with.

Source