I have R scripts which are running on a Raspberry Pi device. I want to encrypt the code and data on the device so that if anyone unmounts the disk and try to read the content via other devices they should not be able to do it.
I used ecryptfs for encrypting the folder, but for automounting volume, we need to keep the passphrase on the same volume (in a file) which defeats the purpose. I want to know, what are the best ways to securing data and code on the device.
The Pi needs to be able to perform an unattended boot, without a password being entered.