Hey folks,
So, I’ve been messing around with cURL commands lately, and I’m trying to figure out the safest way to pass a curl username password without exposing it in plain text. Like, I know you can just slap `-u username:password` in the command, but that feels sketchy af, especially if someone’s peeking over your shoulder or if the command gets logged somewhere.
I’ve heard about using environment variables or even `.netrc` files to store the curl username password securely. Anyone got experience with that? Or maybe there’s a better way I’m missing?
Also, is it safe to use `--user` in scripts, or is that just asking for trouble? Would love some tips or examples if y’all have ‘em!
Cheers!
So, I’ve been messing around with cURL commands lately, and I’m trying to figure out the safest way to pass a curl username password without exposing it in plain text. Like, I know you can just slap `-u username:password` in the command, but that feels sketchy af, especially if someone’s peeking over your shoulder or if the command gets logged somewhere.
I’ve heard about using environment variables or even `.netrc` files to store the curl username password securely. Anyone got experience with that? Or maybe there’s a better way I’m missing?
Also, is it safe to use `--user` in scripts, or is that just asking for trouble? Would love some tips or examples if y’all have ‘em!
Cheers!
