Encrypting Data

Data at Rest Encryption

  • Data at Rest: Refers to protecting data stored on hardware devices such as hard drives and SSDs.

  • Full Disk and Volume Encryption: Protects an entire drive or volume; common native tools include BitLocker for Windows and FileVault for macOS.

  • File-Level Encryption: Encrypts individual files rather than entire drives. Windows provides the Encrypting File System (EFS) within the NTFS file system (enabled under advanced folder/file properties by choosing "encrypt contents to secure data"); third-party utilities support macOS, Linux, and Windows.

Database Encryption Methods

  • Transparent Encryption: Uses a symmetric key to encrypt the entire database, requiring data encryption and decryption during read operations.

  • Column-Level Encryption: Restricts encryption to specific sensitive data columns (such as Social Security numbers) while leaving other fields (such as employee IDs or names) in plain text, reducing decryption overhead during queries.

Data in Transit Encryption

  • In-Transit Protection: Encrypts data actively moving across a network to prevent eavesdropping.

  • HTTPS: Secures browser communication across network paths.

  • Virtual Private Network (VPN): Forms an encrypted tunnel between endpoints. Client-based deployments typically rely on SSL or TLS, whereas site-to-site tunnels commonly use IPSec.

Encryption Algorithms and Compatibility

  • Algorithm Compatibility: Both communicating parties must utilize identical encryption and decryption algorithms for data transfer to succeed.

  • Public Nature of Algorithms: Cryptographic algorithms are public and mathematically transparent; system trust relies on scrutiny of the mathematics rather than secrecy of the algorithm.

  • Data Encryption Standard (DES): Splits input data into left plain text and right plain text across five steps to yield a 64-bit64\text{-bit} ciphertext.

  • Advanced Encryption Standard (AES): Processes plain text and a secret key through a cipher to generate ciphertext across multiple operational versions.

Cryptographic Keys and Brute-Force Defenses

  • Importance of the Key: Security relies entirely on maintaining the confidentiality of the key, which controls the transformation of data in hashing, signatures, and encryption.

  • Symmetric Key Lengths: Typically require lengths of 128 bits128\text{ bits} or greater to resist brute-force attacks.

  • Asymmetric Key Lengths: Frequently require lengths of 3,072 bits3{,}072\text{ bits} or greater due to the mathematical structures surrounding large prime numbers.

  • Key Stretching (Key Strengthening): Mitigates brute-force attacks by repeating the cryptographic process (such as hashing a hash multiple times), forcing attackers to perform repeated decryptions per attempt.