Emulator of a quantum cryptography system: comparison of bb84 and efficient bb84 quantum key distribution protocols.