If you're interested in learning how to hack -- and stay within the realms of the law while you're doing so -- you can begin by checking out free resources including YouTube and Coursera. Alternatively, you can begin by earning a few certifications in the field.Also: The 6 best ethical hacking certifications: Hone your skills