finding secret key