Allow to set default crypt cost factor (see #6500)

As suggested by @jasonlewis in #6500.