Make WordPress Core


Ignore:
Timestamp:
01/06/2025 03:21:26 PM (22 months ago)
Author:
johnbillion
Message:

Security: Enhance the wp_hash() function to support custom hashing algorithms.

The default algorithm remains as md5, but this change allows any algorithm that's supported by hash_hmac() to be used instead.

Props pushpenderindia, ayeshrajans, debarghyabanerjee, johnbillion

Fixes #62005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pluggable/signatures.php

    r56549 r59578  
    210210                                'data',
    211211                                'scheme' => 'auth',
     212                                'algo'   => 'md5',
    212213                        ),
    213214                        'wp_hash_password'                => array( 'password' ),
Note: See TracChangeset for help on using the changeset viewer.