There is a common misconception about encryption; some individuals may state or claim their encryption or code is unbreakable/unhackable. However, this is never the case. Anything that is created to protect something, such as data encryption, can always be broken into or unauthorizedly accessed. However, some different encryption methods may take a long time to break depending on the security involved.
First and foremost, there are two different encryption methods. Asymmetric encryption methods and Symmetric encryption methods. According to ibm.com, "Asymmetric encryption, also known as Public-Key Cryptography, encrypts and decrypts the data using two separate cryptographic asymmetric keys. These two keys are known as a “public key” and a “private key," "Symmetric encryption is a type of encryption where only one secret symmetric key is used to encrypt the plaintext and decrypt the ciphertext.".
Some encryption or code-breaking techniques include brute force attacks, social engineering, frequency analysis, and many more. Brute force attacks are the most well-known, and three different attack types can be performed. Types of brute force attacks include dictionary attacks, search attacks, and rule-based search attacks. In summary, cloudflare.com defines a brute force attack as "a trial-and-error method used to decode sensitive data." which definition covers all types of brute force attacks.