creating secret key model