Go to file
Hazel a0bb969f12 Add LICENSE 2023-07-02 20:58:26 +00:00
lib decrypt working 2023-06-22 05:21:48 +02:00
.formatter.exs Initial commit 2023-06-22 00:51:59 +02:00
.gitignore Initial commit 2023-06-22 00:51:59 +02:00
LICENSE Add LICENSE 2023-07-02 20:58:26 +00:00
README.md decrypt working 2023-06-22 05:21:48 +02:00
mix.exs decrypt working 2023-06-22 05:21:48 +02:00
mix.lock decrypt working 2023-06-22 05:21:48 +02:00

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