The BB84 protocol, named after its inventors Charles Bennett and Gilles Brassard in 1984, is a prepare-and-measure quantum key distribution (QKD) protocol, in which, one party performs the encoding by preparing the quantum states, and the other party measures them.