I am not able to understand an argument from Simple proof of Security of the BB84 QKD; I need your help. In page 2 it is mentioned that "Alice can measure her half of the encoded EPR pairs before or after transmission. If she measures them first, this is the same as choosing a random key $k$ and encoding $k$ using $Q_{x,z}$."
I am not getting how sharing maximally entangled EPR states is the same as sending non-entangled encoded (CSS) quantum states. Basically, it is proved that protocol is secure when the entangled pair is secure, but now they are replacing maximally entangled states with just encoded quantum states.
In the recently published book named "Quantum Key Distribution" by Dr. Ramona Wolf (and also in her lectures), she mentioned the same thing "... instead of preparing maximally entangled states, Alice can equivalently choose bit string $x,z,$ and $k$ at random, encode $| k \rangle$ in the code $Q_{x,z}$ and send the corresponding $n$-qubit codeword to Bob.
It's still unclear why they're the same.
If you could provide me with some understanding or a proper explanation for this equivalency, that would be extremely useful. (I have studied CSS error-correcting codes)