A method and apparatus for generating a secret key includes: acquiring a random sequence by use of reciprocity of a radio channel; generating the secret key based on the random sequence; and stopping generating the secret key when it is determined that the radio channel is flat based on flatness measured from the radio channel.