On Wed, Feb 22, 2017 at 01:17:35AM -0300, Alejandro Infante wrote: > salt := (Nacl randomBytes: 16) > > User>>setPassword: aPassword > hashedPassword := Nacl hash: (salt , aPassword asByteArray)
Hi Alejandro, Coincidentally, I've just updated my SHA256/512 password hashing library, which wraps a C library of the same. The salt is variable length between 8 and 16 octets long, and the output is in the informally standard md5crypt format "$id$salt$passwordhash". Words: http://www.samadhiweb.com/blog/2017.02.18.shacrypt.html http://www.samadhiweb.com/blog/2013.11.17.shacrypt.html https://www.akkadia.org/drepper/sha-crypt.html Code: https://github.com/PierceNg/PasswordCrypt Pierce