README.md

# Age

A small Elixir implementation of the [age](https://age-encryption.org) encryption format.
This currently supports [version 1 of the format](https://age-encryption.org/v1), and only implements X25519 identities.

## Usage

```elixir
# 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.

```elixir
def deps do
  [
    {:age, "~> 0.1.0"}
  ]
end
```