Docker container for the age encryption tool
380
Docker container for the age encryption tool.
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
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
$ docker run --rm -it -v `pwd`:/here jamesfrosty/age-dockerhub:latest age-keygen -o /here/key.txt
Public key: age1zftrgf42x6t97dkujtw0u4yaq3thxamzcgmp4afzvt67hpcfe52sc07fg4
$ ls
key.txt
To build the Docker container, run:
$ make image
Specifying a version of the age tool:
$ make VERSION=v1.0.0-beta6 image
Content type
Image
Digest
Size
6.4 MB
Last updated
over 5 years ago
docker pull jamesfrosty/age-dockerhub