It is the oldest trick in the book. Remarkably, it works more often than it should, but only as part of a complete look.

What actually makes it work

What does not work

Glasses alone, with the same hairstyle, the same voice, and your hero emblem on your coffee mug.

For a full approach, see Secret Identity Management 101.