While the terms might be more familiar to fans of old-fashioned cowboy films, “white hat” and “black hat” have found modern relevance in the world of computer hacking.
In the black-and-white cowboy films of yesteryear, the concept of the white hat vs. the black hat was originally developed to help audiences easily identify the hero and the villain. Today, these terms are now used to identify two types of hackers: white hat hackers and black hat hackers.