AESCrypt v0.1.0 AESCrypt View Source

Read and write files in AES Crypt format.

Link to this section Summary

Functions

Attempts to read and decrypt the file at the specified location. Raises in case of failure

Attempts to read and decrypt the file at the specified location

Encrypts the content and writes the result to a file at the specified location. Raises in case of failure

Encrypts the content and writes the result to a file at the specified location

Link to this section Functions

Attempts to read and decrypt the file at the specified location. Raises in case of failure.

Returns the plaintext only upon success.

Attempts to read and decrypt the file at the specified location.

Returns {:ok, plaintext, extensions} upon success, or {:error, reason} in case of failure.

Link to this function write!(path, content, passphrase, modes \\ []) View Source

Encrypts the content and writes the result to a file at the specified location. Raises in case of failure.

Link to this function write(path, content, passphrase, modes \\ []) View Source

Encrypts the content and writes the result to a file at the specified location.

Returns :ok upon success, or {:error, reason} in case of failure.