Bash script to:
- Iterate all commits made within a Git repository.
- List every object at each commit.
# create a PEM pub key (will be useful later) | |
openssl rsa -in .ssh/id_rsa -pubout -out id_rsa.pub.pem | |
# check it | |
chmod 700 id_rsa.pub.pem | |
openssl rsa -in id_rsa.pub.pem -pubin -text -noout | |
# 1) encrypt small file, using only RSA private and pub key | |
# create a secret | |
echo "my secret" > secret.txt | |
# encrypt the file using your public key |