Definition

Encryption converts plain data into unreadable ciphertext using an algorithm and a key. Symmetric encryption uses one shared key, while public-key (asymmetric) encryption uses a public key to lock and a private key to unlock. Digital signatures and certificates build on public-key methods.

Detailed Explanation

E-commerce uses encryption in transit (TLS) and at rest (encrypted databases and backups). Key management matters as much as the algorithm: a stolen key defeats the protection.

Nepal Context

Nepali merchants usually rely on their hosting provider and payment gateway for encryption, but should still encrypt backups and restrict who can export customer data.

Key Takeaways

  • Symmetric = one key; public-key = key pair.
  • Protects data in transit and at rest.
  • Security depends on key management.