bjorney

joined 1 year ago
[–] bjorney@lemmy.ca 1 points 1 month ago

That assumes that an adversary has control of the browser

No it doesn't, if they intercept an encrypted password over HTTPS they can resend the request from their own browser to get access to your account

The big reason you don't want to send passwords over https is that some organizations have custom certs setup

What is the problem with that? The password is secure and only shared between you and the site you are intending to communicate with. Even if you sent an encrypted password, they wrote the client side code used to generate it, so they can revert it back to its plaintext state server side anyways

It is better to just not send the password at all.

How would you verify it then?

If not sending plaintext passwords was best practice then why do no sites follow this? You are literally posting to a site (Lemmy) that sends plaintext passwords in its request bodies to log-in

[–] bjorney@lemmy.ca 2 points 1 month ago (2 children)

Client side verification is just security by obscurity, which gains you very little.

If someone is capable of MITM attacking a user and fetching a password mid-transit to the server over HTTPS, they are surely capable of popping open devtools and reverse engineering your cryptographic code to either a) uncover the original password, or b) just using the encrypted credentials directly to authenticate with your server without ever having known the password in the first place

[–] bjorney@lemmy.ca 8 points 1 month ago (6 children)

You are acting like someone checked off a "log passwords" box, as if that's a thing that even exists

Someone configured a logger to write HTTP bodies and headers, not realizing they needed to build a custom handler to iterate through every body and header anonymizing any fields that may plausibly contain sensitive information. It's something that literally every dev has done at some point before they knew better.

[–] bjorney@lemmy.ca 24 points 2 months ago

Nothing more beautiful than seeing transparent yellow-orange overlaid on top of transparent orange-yellow

[–] bjorney@lemmy.ca 2 points 2 months ago

It's not uncommon to see certain sites to only work on chromium because the dev used the filesystem APIs that don't exist on FF

[–] bjorney@lemmy.ca 7 points 2 months ago* (last edited 2 months ago) (6 children)

It's not necessary but there is no reason not to.

Pros:

  • production and development programs are more similar
  • upgrading your base image won't affect your python packages
  • you can use multi stage builds to create drastically smaller final images

Cons:

  • you have to type venv/bin/python3 instead of just python3 in the run line of your dockerfile
[–] bjorney@lemmy.ca 78 points 3 months ago

lol. Did this in my old building - the dryer was on an improperly rated circuit and the breaker would trip half the time, eating my money and leaving wet clothes.

It was one of the old, "insert coin, push metal chute in" types. Turns out you could bend a coat hanger and fish it through a hole in the back to engage the lever that the push-mechanism was supposed to engage. Showed everyone in the building.

The landlord came by the building a month later and asked why there was no money in the machines, I told him "we all started going to the laundromat down the street because it was cheaper"

[–] bjorney@lemmy.ca 2 points 3 months ago

Newer windows versions lets you set up scheduled defrags, yeah, but also if you aren't using your HDD for your OS there is little to no opportunity for it to become fragmented in the first place

[–] bjorney@lemmy.ca 5 points 3 months ago

Yes it happens in the background, but also, people's use case for HDDs nowadays doesn't even really necessitate defragmentation in the first place.

If you aren't using your disk for your OS where frequent temp writes etc are occurring, there is minimal opportunity for it to become fragmented, and if you aren't gaming, you aren't going to notice any performance hit associated with a minimally fragmented HDD

[–] bjorney@lemmy.ca 14 points 3 months ago (6 children)

It's not that it happens in the background, it's that you don't defrag SSDs

[–] bjorney@lemmy.ca 14 points 4 months ago

It's unavoidable - once the cheese gets hot enough the steam will either force the liquid cheese out of existing holes, or it will make its own holes.

Make sure they are fresh out of the freezer when you put them in, as this lets the outside crisp up more before the inside becomes lava. Once you get close to the prescribed cooking time, you need to just sit in front of the oven door and watch them, and as soon as 2-3 break open, take the whole tray out

view more: next ›