updating secure key