LakeMaps / pi

Lake Maps' boat Raspberry Pi image build script
Open Software License 3.0
1 stars 0 forks source link

Add ability to decrypt encrypted files #21

Closed whymarrh closed 6 years ago

whymarrh commented 6 years ago

This PR adds the ability to decrypt files destined for the built image that have been encrypted. 🔒

The process in a nutshell:

  1. Add a new file to the appropriate .gitignore file
  2. Add a new file to the image
  3. Encrypt it using openssl enc -aes-256-cbc -a -salt -in example.txt -out example.txt.enc
  4. Run the build script with the IMAGE_BUILD_PASSWORD set to the correct value

The convention here is that every file x is encrypted as x.enc with the same password. The build script will decrypt all files ending in ".enc" (i.e. *.enc) to a file without the ".enc" suffix.