logoalt Hacker News

Maskawanian • today at 4:12 PM • 1 reply • view on HN

Sure, you could MITM still if all you do is that, as with anything it depends on what you are defending against.

If you are defending against clear text being discoverable, then bcrypt hashing with a unique salt on the client is good enough.

If you are trying to prevent MITM you can combine that salting with public/private key transmission of the bcrypt hash to the backend (effectively the same idea as pass keys without the downsides).

MITM just affects your service, and doesn't always matter depending on what the service is, for example, a recipe manager doesn't need to have bullet proof security.


Replies

Ra8 • today at 4:21 PM

What if the hash you're sending is discovered? I can use that to login to the service; it offers the same protection as a plain text password.

➕ show 1 reply