Your can encrypt your Travis variables using the travis
tool.
You encrypt your variable with travis encrypt FOO=<your passowrd/sensitive data here>
This will print out something like: secure: "djfhfjriwjdncml2948328$+@jdjw"
Then you can use that variable in your envoirmental variables or anywhere else.
For example, if you copy that variable into the environment section, you can securely store your environmental variable.
env:
- secure: "djfhfjriwjdncml2948328$+@jdjw"
Now,the environmental variable FOO Holds your password in a secure manner. To learn more you can read up on this here