Idiom: Keep it under your hat

What does 'Keep it under your hat' mean?

If you keep something under your hat, you keep it secret.

See also: