function generate_token() { return bin2hex(openssl_random_pseudo_bytes($this->token_length)); }