To have an ace up one's sleeve
Describes having a secret advantage or hidden resource that can be used when needed. Identical to the English idiom.
Don't worry, I have an ace up my sleeve.
It looked like we were going to lose, but they had an ace up their sleeve.
—How are you going to solve it? —I have an ace up my sleeve.