Skip to main content
replaced http://security.stackexchange.com/ with https://security.stackexchange.com/
Source Link

I will be using scrypt to store passwords in my application. As such, I'll be using SHA-256 and Salsa20 crypto primitives (with PBKDF2).

Having that in mind, how big salt should I use? Should it be equal to the size of SHA-256 output: 256bits or should it be equal to number of bits I'll take from this password stretching function: 512bits?

Considering that SSHA as used by OpenLDAP has only 32bit salt and Linux crypt() uses 48bit salt my salts would seem fairly large...

In general: What is the rule of thumb for size of salt?


Related:

What should be used as a salt?What should be used as a salt?

What is a good enough salt for a SaltedHash?What is a good enough salt for a SaltedHash?

I will be using scrypt to store passwords in my application. As such, I'll be using SHA-256 and Salsa20 crypto primitives (with PBKDF2).

Having that in mind, how big salt should I use? Should it be equal to the size of SHA-256 output: 256bits or should it be equal to number of bits I'll take from this password stretching function: 512bits?

Considering that SSHA as used by OpenLDAP has only 32bit salt and Linux crypt() uses 48bit salt my salts would seem fairly large...

In general: What is the rule of thumb for size of salt?


Related:

What should be used as a salt?

What is a good enough salt for a SaltedHash?

I will be using scrypt to store passwords in my application. As such, I'll be using SHA-256 and Salsa20 crypto primitives (with PBKDF2).

Having that in mind, how big salt should I use? Should it be equal to the size of SHA-256 output: 256bits or should it be equal to number of bits I'll take from this password stretching function: 512bits?

Considering that SSHA as used by OpenLDAP has only 32bit salt and Linux crypt() uses 48bit salt my salts would seem fairly large...

In general: What is the rule of thumb for size of salt?


Related:

What should be used as a salt?

What is a good enough salt for a SaltedHash?

How big salt should salt be?

edited tags
Link
curiousguy
  • 5.1k
  • 3
  • 27
  • 27
edited tags
Link
Andrei Botalov
  • 5.5k
  • 11
  • 50
  • 74
Loading
edited tags
Link
AviD
  • 73.6k
  • 24
  • 141
  • 222
Loading
Tweeted twitter.com/#!/StackSecurity/status/164399768091627520
rephrase to what I mean...
Source Link
Hubert Kario
  • 3.8k
  • 5
  • 29
  • 35
Loading
note about crypt()
Source Link
Hubert Kario
  • 3.8k
  • 5
  • 29
  • 35
Loading
Source Link
Hubert Kario
  • 3.8k
  • 5
  • 29
  • 35
Loading