# Data at Rest

> How do you protect sensitive data at rest in a web application, and what are the different layers of encryption you can use?

Canonical: https://www.internhack.in/learn/interview/web-security/security-sensitive-data-rest
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

How do you protect sensitive data at rest in a web application, and what are the different layers of encryption you can use?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Encryption at Rest, Envelope Encryption, KMS, AES-256-GCM, Field-Level Encryption, Key Rotation

Previous: [CSPRNG](https://www.internhack.in/learn/interview/web-security/security-cryptographically-secure-random) · Next: [Security Misconfiguration](https://www.internhack.in/learn/interview/web-security/security-security-misconfiguration) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [Phishing Protection](https://www.internhack.in/learn/interview/web-security/security-phishing-prevention)
- [Social Engineering](https://www.internhack.in/learn/interview/web-security/security-social-engineering-basics)
- [Buffer Overflow](https://www.internhack.in/learn/interview/web-security/security-buffer-overflow-intro)
- [Blind SQL Injection](https://www.internhack.in/learn/interview/web-security/security-sql-blind-injection)
- [API Security](https://www.internhack.in/learn/interview/web-security/security-api-security-best-practices)
- [XXE Attack](https://www.internhack.in/learn/interview/web-security/security-xml-external-entity-xxe)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
