Frequency analysis involves looking at blocks of an encrypted message to determine whether any common patterns exist. Quantum cryptography is a form of encryption that is based on the characteristics of the smallest particles known. Algorithm errors occur when predictable results create a weakness in the coding system. Brute-force attacks apply every possible combination of characters until a match is found.