# One-time pad encryption - how does the receiving side decrypt the message?

If a message is sent using one-time pad scheme, which generates random bits in order to, for example, XOR them with the message's bits - how does the receiving side generate the exact series of bits ?

If the receiving side is able to generate the same series then how is it still random ?

• The receiving side needs to receive an explicit copy of the random bits. – SEJPM Feb 9 at 14:45
• And said random bits have to remain secret. In the rare practical cases when the OTP is used, the random bits are generated in advance of transmission, and sent by secure means such as trusted couriers. – fgrieu Feb 9 at 15:18

• @HennoBrandsma good point. When I see the coincidence test I remembered but needs to refresh. Thanks. – kelalaka Feb 10 at 22:31