Question: how long would it take to learn how to hack?
Answer: Most people who try can obtain a decent skill set in eighteen months to two years if they completely concentrate on it. However, hacking is a vast ocean which takes years to explore its mystery.