CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: three plus two?
(Example: nine)

The Note You're Voting On

Mark Seecof
14 years ago
If you need a message key, obtain it from the openssl_random_pseudo_bytes() function.

DO NOT just hash the current time-- an attacker will guess any such key very easily (he'll just hash a bunch of likely time values and try them until he finds the right one. The attacker can generate and test many millions of candidate hashes every minute using an ordinary PC).

<< Back to user notes page

To Top