Closed michalskalski closed 9 years ago
It'd be nice to have iterations of the salt as well. Something like PBKDF2 (http://en.wikipedia.org/wiki/PBKDF2) would be nice.
This PR adds SHA512: https://github.com/gholt/swauth/pull/77 and fixies global salt.
I think, SHA256 is not needed.
PBKDF2 requires additional library.
Closing this since that PR got merged.
Hi,
I added 2 new classes to store users keys as sha256 and sha512 hashes:
I was wondering if sha1 seems not be secure any more nowadays maybe it should be better to use stronger hashes as default? Do you think it could have notacible impact on performance of swift proxy server? As i can see there is a option to set a global salt only or there is a way to pass salt per user key? If use global salt maybe we shouldn't store salt together with users keys in case of someone stole are database?