Origins of Star of David as Jewish Symbol...

During the Nazi era, it was meant as a badge of shame for Jews. During the Middle Ages, it was evidently a mystical symbol of some kind. And that is about all I know about the Star of David/Hexagram symbol. My question: how did it become the symbol of Judaism?

Cabalism? :confused:

First hit off Google, from Judaism 101: Signs and Symbols