In this paper, an encryption key generation algorithm is suggested for multiple-relay networks against eavesdropping. The proposed algorithm is based on the parameters of the wireless channels between the relays nodes and the destination, which is unavailable for any eavesdroper. The secure performance of the proposed algorithm is also analyzed through mathmatical derivation. Specifically, the closed form of key matching probability, an important measure for secure performance, is obtained through multiple-round integration and reasonable approximation. Finally, simulations are provided to corroborate our proposed studies.