Fix #87: security helper converted into component and improved

Fix #87: security helper improvement

Migrated from #4052
PASSWORD_DEFAULT will change over time. Check out the [RFC Documentation](https://wiki.php.net/rfc/password_hash#updating_password_default) for more details.