Encryption is used to hide information from unauthorized parties by translating plaintext files into ciphertext using secret codes. Cryptography involves mathematically scrambling data using keys so that only those with the necessary key can access the information. Technological advances both increased risks by making data more accessible but also reduced risks through strong encryption techniques.