https://github.com/jamesfrost/age-dockerhub
Docker container for the age encryption tool
https://github.com/jamesfrost/age-dockerhub
age cli docker docker-container encryption
Last synced: 2 months ago
JSON representation
Docker container for the age encryption tool
- Host: GitHub
- URL: https://github.com/jamesfrost/age-dockerhub
- Owner: JamesFrost
- License: bsd-3-clause
- Created: 2021-01-23T15:12:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-27T09:02:44.000Z (about 5 years ago)
- Last Synced: 2025-01-18T07:48:03.002Z (over 1 year ago)
- Topics: age, cli, docker, docker-container, encryption
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/jamesfrosty/age-dockerhub
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# age-dockerhub
Docker container for the [age encryption tool](https://github.com/FiloSottile/age).
## Example Usage
### Encryption
Encrypting a file in the current directory:
```bash
$ 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:
```bash
$ 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
```bash
$ 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:
```bash
$ make image
```
Specifying a version of the age tool:
```bash
$ make VERSION=v1.0.0-beta6 image
```
## Links
* [Dockerhub](https://hub.docker.com/r/jamesfrosty/age-dockerhub)
* [GitHub](https://github.com/JamesFrost/age-dockerhub)