Furthermore, single photon sources are essential in quantum cryptography. The BB84 scheme is a provable secure quantum key distribution scheme. It works with a light source that perfectly emits only one photon at a time. Due to the no-cloning theorem, no eavesdropping can happen without being noticed. The use of quantum randomness while writing the key prevents any patterns in the key that can be used to decipher the code.