-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.md.eex
39 lines (25 loc) · 1.21 KB
/
README.md.eex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## FernetEx
[![Build Status](https://travis-ci.org/kennyp/fernetex.svg?branch=master)](https://travis-ci.org/kennyp/fernetex)
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](https://github.com/fernet).
They can exchange tokens freely among each other.
Documentation: [http://hexdocs.pm/fernetex/<%= version %>/](http://hexdocs.pm/fernetex/<%= version %>/)
### Adding FernetEx To Your Project
To use FernetEx with your projects, edit your `mix.exs` file and add it as a dependency:
```elixir
defp deps do
[{:fernetex, "~> <%= version %>"}]
end
```
For more information and background, see the Fernet spec at
[https://github.com/fernet/spec](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