Age is a simple, modern and secure encryption tool. This repository contains a demo of how to use it.
Install age command line tool. See the official installation instructions
$ age-keygen -o key.txt
Public key: your_age_public_key
$ echo "Hello World" > file.txt
$ age -r your_age_public_key -o file.txt.age file.txt
age --decrypt -i key.txt file.txt.age > file.txt
How to create a key pair:
age-keygen -o keys/key.txt
How to encrypt the finetune data file (which is a jsonl file):
age -r $(cat keys/key.txt | grep '^# public key:' | cut -d ' ' -f 4) \
-o data/finetune_data.jsonl.age data/finetune_data.jsonl