- var_dump: documentation ( source)
- rand: documentation ( source)
- srand: documentation ( source)
<?php
$value = 1371320016;
var_dump($value);
srand($value);
$key = rand();
var_dump($key);
$cyphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC);