note 100648 added to function.sha1
| From: | x at osu1 dot php dot net | Date: | Thu, 28 Oct 2010 06:13:49 +0000 |
| Subject: | note 100648 added to function.sha1 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173543@lists.php.net to get a copy of this message | ||
@Anonymous 25-Apr-2010 01:03
I think it's a bad example. What if I need 30 days time span? Do I need to 30s (just a number)
waiting for the page to load?
There's a proper way for this kind of usage. Put the timestamp into the token as plain text and
use HMAC to create the hash of the token (with the salt as the private key) and append it to the
token.
http://en.wikipedia.org/wiki/HMAC
----
Server IP: 69.147.83.197
Probable Submitter: 114.56.231.32
----
Manual Page -- http://www.php.net/manual/en/function.sha1.php
Edit -- https://master.php.net/note/edit/100648
Del: integrated -- https://master.php.net/note/delete/100648/integrated
Del: useless -- https://master.php.net/note/delete/100648/useless
Del: bad code -- https://master.php.net/note/delete/100648/bad+code
Del: spam -- https://master.php.net/note/delete/100648/spam
Del: non-english -- https://master.php.net/note/delete/100648/non-english
Del: in docs -- https://master.php.net/note/delete/100648/in+docs
Del: other reasons-- https://master.php.net/note/delete/100648
Reject -- https://master.php.net/note/reject/100648
Search -- https://master.php.net/manage/user-notes.php