Plug.Crypto.MessageVerifier

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.

Summary

Functions

sign(message, secret, digest_type \\ :sha256)

Signs a message according to the given secret

verify(signed, secret)

Decodes and verifies the encoded binary was not tampered with

Functions

sign(message, secret, digest_type \\ :sha256)

Signs a message according to the given secret.

verify(signed, secret)

Decodes and verifies the encoded binary was not tampered with.

© 2013 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/plug/Plug.Crypto.MessageVerifier.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部