As an aside to the solutions here, there are cleaner alternatives if you're using certain development servers.
With Heroku's Foreman, you can create per-project environment variables in a .env file:
ADMIN_PASSOWRD="secret"
With Pow, you can use a .powenv file:
export ADMIN_PASSOWRD="secret"