title: How to run cron jobs with sensitive data?
body: <p>I read <a href="https://stackoverflow.com/questions/2229825/where-can-i-set-environment-variables-that-crontab-will-use">Where can I set environment variables that crontab will use?</a> about how to set ENV variables for my scripts running by cron.</p>
  
  <p>The most obvious and working solution is to put variables on top of crontab schedule file like this:</p>
  
  <pre><code>MYVAR=something
  * * * * * /somescript.sh
  </code></pre>
  
  <p>This seems to be fine until I want my script to use sensitive values like login/password to login to, e.g. a database to make a dump.</p>
  
  <p>How do I keep this data safe and still being able to send it to my scripts that are ran by cron?</p>