0

If you already have SHA1 hashed passwords and you're trying to migrate to a better password hashing algorithm, is it less secure to just use PBKDF2 to hash the SHA1 hashes you already have instead of migrating users over when they next log in and hash the password with PBKDF2 directly?

In other words, is there any difference between these two approaches?:

PBKDF2(SHA1(password)) or PBKDF2(password)

The ability to migrate the existing hashes over in one shot would make a migration much easier.

John
  • 2,242
  • 2
  • 28
  • 45
  • 1
    I realize you're asking about PBKDF2 and the flagged duplicate question discusses bcrypt, but they're more or less the same for your purposes. If you have specific PBKDF2 questions I would suggest editing your question to mention those. – PwdRsch Jun 09 '17 at 00:24

1 Answers1

1

This is a pretty common interim conversion scenario. If you have the luxury of having control over the code that manages authentication and can support both methods simultaneously, this is operationally efficient without sacrificing security, if properly implemented.

Informative reference here.

Royce Williams
  • 9,128
  • 1
  • 31
  • 55