BB84 quantum protocol In BB84 protocol, when Alice and Bob make key distribution, what is the private thing? 
They select randomly bases and then make a measurement according to these bases. Used bases are private? I mean that does Eve know which basis was used at each position? If Eve dont know these bases, then How can Alice and Bod share using bases securely? In here, what is public and private?
If we assume that Alice is the one sending the photons, and Bob is the one receiving them, then Bob selects random bases to take the measurements, and then announces them (both to Alice and any potential attacker) after he has taken those measurements. An attacker cannot use that announcement to decide how to take measurements himself, as he doesn't hear it until after the photons have passed.

Now, if the attacker could replace Bob's announcement about the measurements with his own, he could break the system - this would be a simple MITM attack, where Alice communicates to the attacker, and the attacker communicates with Bob.  However, authenticating this communication isn't difficult; it can be done using a universal hash, initially (for the first exchange) a key that was installed in both systems, and for later exchanges, bits that were exchanged during the previous exchange.