Fix #87: security helper converted into component and improved

Fix #87: security helper improvement

Migrated from #4052
[yes](http://lxr.php.net/xref/PHP_TRUNK/ext/standard/php_password.h#31)