  We present a new approach to simulate quantum cryptography protocols using
event-based processes. The method is validated by simulating the BB84 protocol
and the Ekert protocol, both without and with the presence of an eavesdropper.
