PHP 8.5.0 Alpha 4 available for testing

Voting

: six plus two?
(Example: nine)

The Note You're Voting On

Mark Seecof
15 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