Security of a position-based secret key generation method