[wp-trac] [WordPress Trac] #44032: Minor enhancement
WordPress Trac
noreply at wordpress.org
Wed May 9 23:21:52 UTC 2018
#44032: Minor enhancement
-------------------------------------+-----------------------------
Reporter: alicewondermiscreations | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version:
Severity: trivial | Keywords:
Focuses: |
-------------------------------------+-----------------------------
While auditing WordPress for remote queries the servers make, I noticed
the generation of salts in wp-admin.php is wasteful with an unnecessary
loop inside a loop. If the system php supports random_int it also supports
random_bytes.
Attached patch generates 64 byte (512 bit) salts without needed the 64
round loop inside the 8 round loop loop.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44032>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list