Sign inSign up

jamesfrosty/age-dockerhub

By jamesfrosty

Updated over 5 years ago

Docker container for the age encryption tool

Image
0

380

jamesfrosty/age-dockerhub repository overview

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

Tag summary

Content type

Image

Digest

Size

6.4 MB

Last updated

over 5 years ago

docker pull jamesfrosty/age-dockerhub