note 121919 added to function.sha1
| From: | hkmaly@php.net | Date: | Mon, 27 Nov 2017 10:16:08 +0000 |
| Subject: | note 121919 added to function.sha1 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209222@lists.php.net to get a copy of this message | ||
Note: Before you get some idea like using sha1 with password as way to prevent others tampering with
message, read pages "Length extension attack" and "Hash-based message authentication
code" on wikipedia. In short, naive constructions can be dangerously insecure. Use hash_hmac if
available or reimplement HMAC properly without shortcuts, like already shown in comment from mark
at dot BANSPAM dot pronexus dot nl.
----
Server IP: 208.43.231.9
Probable Submitter: 94.112.145.164
----
Manual Page -- http://php.net/manual/en/function.sha1.php
Edit -- https://master.php.net/note/edit/121919
Del: integrated -- https://master.php.net/note/delete/121919/integrated
Del: useless -- https://master.php.net/note/delete/121919/useless
Del: bad code -- https://master.php.net/note/delete/121919/bad+code
Del: spam -- https://master.php.net/note/delete/121919/spam
Del: non-english -- https://master.php.net/note/delete/121919/non-english
Del: in docs -- https://master.php.net/note/delete/121919/in+docs
Del: other reasons-- https://master.php.net/note/delete/121919
Reject -- https://master.php.net/note/reject/121919
Search -- https://master.php.net/manage/user-notes.php