[wp-hackers] Rethinking check_admin_referer()

Matt Mullenweg m at mullenweg.com
Fri Apr 21 05:06:11 GMT 2006


Robert Deaton wrote:
> Writing to the database is expensive. Here's an example of
> computational hashes (very simple) that have a variable lifetime, a
> minimum of 12 hours, a maximum of somewhere around 59 hours, the
> minimum is easily adjustable, the maximum is slightly harder, but
> nothing insurmountable, just requires a bit of math. Obviously, salt
> of some sort should be added, action parameters, etc., but this is
> just a really, really simple proof of concept.

You get a star for being the first person to post code. :)

-- 
Matt Mullenweg
  http://photomatt.net | http://wordpress.org
http://automattic.com | http://akismet.com


More information about the wp-hackers mailing list