How do you generate GameShark codes?

In order to create your own Gameshark codes, intense familiarity with hexadecimal coding is required. Pre-generated codes can be entered with ease, however, and several places supply these codes.