/age-dockerhub

Docker container for the age encryption tool

Primary LanguageDockerfileBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

age-dockerhub

Docker container for the age encryption tool.

Example Usage

Encryption

Encrypting a file in the current directory:

$ ls
secrets.txt

$ docker run --rm -it -v `pwd`:/here jamesfrosty/age-dockerhub:latest age -p -o /here/secrets.age /here/secrets.txt
Enter passphrase (leave empty to autogenerate a secure one):
Confirm passphrase:

$ ls
secrets.age	secrets.txt

Decryption

Decrypting a file in the current directory:

$ ls
secrets.age

$ docker run --rm -it -v `pwd`:/here jamesfrosty/age-dockerhub:latest age -d -o /here/secrets.txt /here/secrets.age
Enter passphrase:

$ ls
secrets.age	secrets.txt

Key Generation

$ docker run --rm -it -v `pwd`:/here jamesfrosty/age-dockerhub:latest age-keygen -o /here/key.txt
Public key: age1zftrgf42x6t97dkujtw0u4yaq3thxamzcgmp4afzvt67hpcfe52sc07fg4

$ ls
key.txt

Building

To build the Docker container, run:

$ make image

Specifying a version of the age tool:

$ make VERSION=v1.0.0-beta6 image

Links