I have a script that runs on a VPS in a cheap cloud provider. The scenario is: I trust my provider, but I prefer to make his life hard if he ever wants to steal my key. All the interested folders in the hard disk are encrypted (truecrypt or similar), in clear only when the machine is up (everytime, but if they take out the hhd, they will not be able to look at my data)
Which is the best solution to handle a Dropbox API Key inside a script?
Note: the script will get files from FTP, upload them to Dropbox and delete them from the disk.
I was thinking to store an encrypted file (openssl/pgp) and as I launch the script (with the decrypting key, typed manually) it will decrypt the key, store it as a variable and use it when needed (the script will remain alive forever)
Any ideas/comments?