View Source Age (age v0.1.0)

Elixir implementation of the age encryption format.

Link to this section Summary

Functions

Decrypts the given data using the given identity.

Encrypts the given data for the given list of recipients.

Generates a new identity keypair and formats it in Bech32.

Link to this section Functions

@spec decrypt(binary(), String.t()) :: {:ok, binary()} | {:error, String.t()}

Decrypts the given data using the given identity.

Link to this function

encrypt(data, recipients)

View Source
@spec encrypt(binary(), [String.t()]) :: {:ok, binary()} | {:error, String.t()}

Encrypts the given data for the given list of recipients.

@spec generate_identity() :: {String.t(), String.t()}

Generates a new identity keypair and formats it in Bech32.