Skip to content

kennyp/fernetex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 27, 2024
a2aa700 · Nov 27, 2024

History

98 Commits
Jul 2, 2024
Mar 15, 2022
Sep 8, 2015
Aug 20, 2024
Mar 15, 2022
Mar 15, 2022
Mar 15, 2022
Mar 15, 2022
Nov 27, 2024
Sep 8, 2015
Nov 27, 2024
Apr 12, 2016
Nov 27, 2024
Aug 20, 2024

Repository files navigation

FernetEx

CI Status

Fernet takes a user-provided message (an arbitrary sequence of bytes), a key (256 bits), and the current time, and produces a token, which contains the message in a form that can't be read or altered without the key.

This package is compatible with the other implementations at https://github.com/fernet. They can exchange tokens freely among each other.

Documentation: http://hexdocs.pm/fernetex/0.5.0/

Adding FernetEx To Your Project

To use FernetEx with your projects, edit your mix.exs file and add it as a dependency:

defp deps do
  [{:fernetex, "~> 0.5.0"}]
end

For more information and background, see the Fernet spec at https://github.com/fernet/spec.

FernetEx is distributed under the terms of the MIT license. See the License file for details.

Useful Mix tasks

FernetEx comes with two useful mix tasks

  • mix fernet.keygen is useful for generating keys
  • mix fernet.sign key is useful for signing a message using the given key