The BB84 quantum coding scheme was the first proposed quantum encoding of classical information in such a way that the receiver (legitimate or illegitimate) cannot recover with 100% reliability. It is the basic tool most of the quantum protocols are based upon (see C.H. Bennett and G. Brassard "Quantum Cryptography: Public Key Distribution and Coin Tossing", Proceedings of IEEE International Conference on Computers Systems and Signal Processing, Bangalore India, December 1984, pp 175-179. ) .
The BB84 coding scheme makes a correspondance between classical bits and quantum states. Each classical bits corresponds to a mixture of two equally likely non-orthogonal quantum states. One representation looks like:

and we denote by |0>, |1>, |0>, and |1> the four states depicted in the picture.
The usual way to encode information to be sent over the quantum channel is by the transmission of photons in some polarization states. The direction of the polarization encodes a classical bit. In the BB84 coding scheme, the classical bit 0 is encoded either by a photon with horizontal polarization or by a photon with polarization at 45degrees of the horizontal direction. The classical bit 1 is encoded by either a photon with polarization along the vertical direction or by a photon polarized at an angle of 135 degrees with the horizontal direction.
According to quantum mechanics, it is impossible to distinguish with certainty two non-orthogonal quantum states. In order to distinguish, a quantum measurement must be performed providing a classical output trying to identify the received state. The obliviousness of the transmitted information provides the cryptographic properties needed in quantum cryptography.
The following measurements will be used for the description of the BB84 coding scheme described below:
Alice's input : n
(the
length of the resulting transmission)
Bob's input
: n
Alice's output: (b,t)
(the
bits and bases transmitted)
Bob's output
: (b',t') (the bits and the bases obtained)
The best measurement for extracting as much information as possible about bi is the measurement in the Breidbart basis: {cos(¶/8)|0> + sin(¶/8)|1>, -sin(¶/8)|0> + cos(¶/8)|1>}. Using the Breidbart measurement one can get the right bit with probability cos2(¶/8) which is about 85%.