You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
2Client-side hashing can prevent an application from accidentally logging the password.Sjoerd– Sjoerd2024-02-15 13:32:54 +00:00Commented Feb 15, 2024 at 13:32
-
Yes, that would be an example for the short window between receiving and hashing the password on the server. However, this still only helps protecting other application when the client has made the major mistake of reusing the password. For the current application, the client-side hash is just as useful for attackers as the original password.Ja1024– Ja10242024-02-15 13:45:00 +00:00Commented Feb 15, 2024 at 13:45
-
@Ja1024 thank you, great answer. The only thing that confuses me is the password-based key derivation terminology. Isn't every hashing algorithm that? It just uses some password and creates a kind of hash/key from that. Or how is a key differnet from a hash?shaniag– shaniag2024-02-15 14:36:41 +00:00Commented Feb 15, 2024 at 14:36
-
A key in this context means a key for an encryption algorithm (or some other keyed algorithm like a message authentication code). Since different algorithms have different key lengths, a generic hash algorithm which produces a fixed-length output like SHA-256 is unsuitable for key generation. It's also unsuitable for password hashing due to its high performance. On the other hand, an algorithm originally meant for deriving keys from passwords can also be used for password hashing, because it's computationally expensive by design (to prevent brute-force attacks).Ja1024– Ja10242024-02-15 15:04:24 +00:00Commented Feb 15, 2024 at 15:04
-
@Ja1024 But Argon2 was not originally meant to derive keys from passwords right? Because in your initial answer you say that pbkdf2 should be replaced with more modern algorithms such as Argon2, but if we say the web crypto API standardizes Argon2, would PBKDF2 not still be more suitable if I wanted to first transform the password into a key on the client side and then hash that derived key later on with argon2 on the server? Or is hashing two times with Argon2 more beneficial? So argon2.hash(argon2.hash(value)) Sorry if these comments are stupid, but I find some stuff a bit confusingshaniag– shaniag2024-02-15 15:38:27 +00:00Commented Feb 15, 2024 at 15:38
|
Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. web-application), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you