2 ms·
I haven't seen this link on this thread yet so here we go: http://people.redhat.com/drepper/sha-crypt.html http://people.redhat.com/drepper/sha-crypt.html Ulri
by peterwwillis 17y ago
I haven't seen this link on this thread yet so here we go:
http://people.redhat.com/drepper/sha-crypt.html http://people.redhat.com/drepper/sha-crypt.html
Ulrich Drepper's implementation of a work factor in SHA password hashing. He addresses a popular article on bcrypt() and how using SHA allows one to follow NIST guidelines and still have the advantage of a time-consuming algorithm.
me@myhost ~/ :) time perl -le'print crypt("some-password","\$6\$rounds=900000\$myrandomsalt")'
$6$rounds=900000$myrandomsalt$O4u/Z5FRNBi3fw6YhAM1V1hC1LAawq9Ri65Kx77GchzOWieXeRs6w83bYqotyqBcz.WE29NygNli93dBDAbpt/
real 0m3.996s
user 0m3.990s
sys 0m0.005s
If someone could comment on this in comparison to bcrypt I would appreciate it. Why should we use bcrypt if this exists in modern crypt() implementations?