|
||
---|---|---|
lib | ||
.formatter.exs | ||
.gitignore | ||
LICENSE | ||
README.md | ||
mix.exs | ||
mix.lock |
README.md
Age
A small Elixir implementation of the age encryption format. This currently supports version 1 of the format, and only implements X25519 identities.
Usage
# Generate a new identity
{recipient, identity} = Age.generate_identity()
# Encrypt a message
encrypted = Age.encrypt("Hello world\n", [recipient])
# Decrypt a message
{:ok, decrypted} = Age.decrypt(encrypted, identity)
Installation
Requires basic build tools, e.g. build-essential
on Ubuntu.
def deps do
[
{:age, "~> 0.1.0"}
]
end