1

Now my way is embedded python code in bash script ,like :

#!/bin/bash

python <<EOF 
print "${1}"
EOF

and then encrypt it with shc ( http://www.datsi.fi.upm.es/~frosal/ ). any better way ?

1 Answer 1

1

I keep passwords in ~/.netrc and use the Python netrc module to fetch them based on the hostname.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.