Skip to content
#externals

Search

7 results

  1. John Coggeshall ·

    … string|int|null $algo, array $options = []): string { print("Hello"); return $password; } <?php // my code namespace App\Models; include "something.php"; password_hash('foobar', PASSWORD_DEFAULT); This code IMO shouldn't print "Hello", but it does. The current behavior of looking …

  2. Ayesh Karunaratne ·

    … passed string is a password, and it is merely an implementation detail for bcrypt. The php.net manual page for password_hash also already mentions the 72-byte truncation behavior. Passing an invalid hashing algorithm, unsupported algorithm options, RNG failures …

  3. Niklas Keller ·

    … example which I think summarizes the behavior you described here: https://3v4l.org/6tunp I have links to a library / blog post: https://github.com/paragonie/password_lock https://paragonie.com/blog/2016/02/how-safely-store-password-in-201

  4. johannes@schlueters.de ·

    Hi, https://wiki.php.net/rfc/password_hash Some comments on the "error behavior" part: `E_WARNING` - When CRYPT is not included in core (was disabled compile-time, or is listed in disabled_functions declaration) Disabling a different function should …

  5. Hans Henrik Bergan ·

    … person saying: let's not clutter functions with more behavior than what's needed :-) If you need to validate a hash for being "well formed" rather than "matching", then write a separate function dedicated to that, rather than increasing the …

  6. Sara Golemon ·

    While exploring password_*() functions, I found myself in php_crypt() and noticed a use-after-free in the PHP_USE_PHP_CRYPT_R==0 case. char *crypt_res; { #if something struct crypt_data buffer; #else CRYPTD buffer; #endif crypt_res …

  7. RFC Under Discussion New Curl URL API

    Rowan Tommins ·

    … a higher chance of them using it incorrectly, and introducing errors. A good example of this mindset is the password_* functions: they do not expose the options of underlying implementations, they present an easy-to-use opinionated set of behaviours …