cosine = adj/hyp
sec = hyp/adj
On a 45/45/90 triangle you have the proportions 1/1/sqrt 2 for the length of the sides. The hyp having the sqrt 2. Choose a side with 45 degrees and take the hyp/adj which will lead to (sqrt 2/1) or just the sqrt 2.
Hope that helped.