We consider a group of wireless nodes that want to exchange a secret key in the presence of a passive eavesdropper. Using network coding techniques, we develop a polynomial-time protocol that enables the group of nodes to agree on secret bits at a rate depending on the properties of the wireless network that interconnects them. We show that our protocol can generate information-theoretically secret keys in a realistic setting.