note 94327 added to function.setcookie

From: Date: Thu, 29 Oct 2009 02:27:35 +0000
Subject: note 94327 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-162218@lists.php.net to get a copy of this message
Its worth noting that most rainbow sites also give the option to convert strings into md5 sums. Whatever you do - dont go entering your passwords into md5 generators, they simply md5 the password, store the password as text and then the corresponding md5 hash. they now have a hash value for that string! for example, i generated a md5 hash code using the word anonymousUser. i then asked a few sites if they knew the corresponding hash of 3c303503151eeded4113bf1dd0ebcb11 and none did. i then put the word anonymousUser into a website and used it to generate the md5 hash. the website could then identify the hash to the word anonymousUser. A simple way to generate md5 hash sums upon request! so, basically: 1. dont go entering anything into any hash producing website. do it all yourself where you know someone wont get your hash. 2. Use some kind of random salt generator to help obscure the actual password. 3. implement some kind of captcha(which should also be salted and hashed) to ensure a human user is entering passwords. 4. restrict the amount of times a certain ip address can attempt to login per minute/hour/day. im pretty sure that implementation of the above should be rather secure! ---- Server IP: 69.147.83.197 Probable Submitter: 78.33.241.146 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/94327 Del: integrated -- https://master.php.net/note/delete/94327/integrated Del: useless -- https://master.php.net/note/delete/94327/useless Del: bad code -- https://master.php.net/note/delete/94327/bad+code Del: spam -- https://master.php.net/note/delete/94327/spam Del: non-english -- https://master.php.net/note/delete/94327/non-english Del: in docs -- https://master.php.net/note/delete/94327/in+docs Del: other reasons-- https://master.php.net/note/delete/94327 Reject -- https://master.php.net/note/reject/94327 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162218) next »