What undergraduate degree will best prepare a person for one of these fields (comp security/cryptography)? - math - compsci ...out of the two, which one would better benefit me if I pursue a PhD with. I'm most interested in computer security and cryptography. Cryptography is algorithmic and mathematical in nature, right? For undergraduate degree, I plan to double in math and compsci, then pursue a PhD in either one - probably math as first choice. My other plan is a bachelor and master's in EECS then PhD in Mathematics.