I've been looking at Git and cURL and I found some references about .netrc, that may help on HTTP authentication. The problem is: .netrc is dumb, because it stores passwords in plain text format, which is a big security issue for the solution I'm developing.
Is there an alternative to the .netrc approach? Is it possible to develop an "authentication backend" to cURL?
Update April 2013, git 1.8.3:
That script would allow you to use gpg-encrypted netrc files, avoiding the issue of having your credentials stored in a plain text file.
See a full example at "Is there a way to skip password typing when using
https:// github
"Original answer (March 2011)
The only alternative (except not using it and going through ssh) would be to:
crypt
')Note that on Unix, that file is normally in mode 600, only visible by you.
On Windows (
_netrc
), that file should be in yourHOMEDIR
, which shouldn't be accessible (through Windows ACL) to any other users.But I still don't like a password in plain text...
This thread, for example, goes through the same process (on Unix for gpg, but it still illustrates the solution nicely):