There are numerous ways to encrypt text and protect it from attackers. However, there are only a few possible ways (sometimes none) to break the encryption. Additionally, cryptography is the field that focuses on exploiting and breaking algorithms in order to discover their true hidden secret.
There are 2 main types in Crypto (according to Wikipedia):
List of common theory needed to be learn: