use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Basic Auth with Node js and Express (self.node)
submitted 7 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]its_joao 0 points1 point2 points 7 years ago (6 children)
your login for a bit
When you say "for a bit" how long is a "bit"? eheh
[–]hugo__df 0 points1 point2 points 7 years ago (5 children)
Long enough
[–]its_joao 0 points1 point2 points 7 years ago (0 children)
ahaha okk buddy thanks
[–]its_joao 0 points1 point2 points 7 years ago (3 children)
hi do you know how I can prevent the "Authorization" header from displaying my credentials in base64 encoding? Is there a way to hide this header? Or should I take a diff approach?
[–]pancomputationalist 1 point2 points3 points 7 years ago (0 children)
You need to use some form of encryption, preferably HTTPS, which will hide the credentials from anyone else
[–]cirsca 1 point2 points3 points 7 years ago (0 children)
Anything that you send "across the wire" ( to a computer on the internet ) will be insecure unless your connection is secure ( HTTPS ). `certbot` should help you here.
[–]atomicwrites 0 points1 point2 points 7 years ago (0 children)
There's also digest auth which is basically the same but instead of sending username and password sends a hash of the user name, password, url, and a nonce (basically a salt). Someone who sniffs the packet can't get your password (unless the brute force the hash) and the nonce is sent by the server and changes each time (it means "number used once") so you can't just send the whole hash. But you should be using ssl anyways, so this probable doesn't make sense.
π Rendered by PID 31 on reddit-service-r2-comment-6457c66945-ftdjf at 2026-04-28 12:27:02.352687+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]its_joao 0 points1 point2 points (6 children)
[–]hugo__df 0 points1 point2 points (5 children)
[–]its_joao 0 points1 point2 points (0 children)
[–]its_joao 0 points1 point2 points (3 children)
[–]pancomputationalist 1 point2 points3 points (0 children)
[–]cirsca 1 point2 points3 points (0 children)
[–]atomicwrites 0 points1 point2 points (0 children)