$timeValidFor) { return false; } return true; } /** * @param $data - string the data that will be hashed. * * @return string */ private static function hashFunction($data) { $hash = hash('sha512', $data); return substr($hash, 64); } }