Independent Preparation Bank for Pakistani Computing Graduates • 100% Free • No Signup
NSCTTest.
Simulator
All Articles
Home/Articles/Subject Deep-Dive
Subject Deep-Dive

Cyber Security & Cryptography: Symmetric Ciphers, Public Keys & OWASP Top 10

Secure all 5 marks in Information Security. Understand AES vs RSA, hashing functions, digital certificates, and the OWASP Top 10 web vulnerabilities.

NSCT Editorial & Syllabus Hub
Curated Technical Curriculum & Testing Benchmarks
6 min readNov 16, 2026Mock Exam

Cyber Security & Cryptography: Symmetric Ciphers, Public Keys & OWASP Top 10

The Information & Cyber Security domain (5%) tests essential security hygiene, cryptographic algorithms, authentication standards, and defensive coding against prevalent web vulnerabilities.


1. The CIA Security Triad

All security controls protect one or more pillars of the CIA Triad:

  • Confidentiality: Ensuring data is accessible only to authorized entities (Achieved via Encryption).
  • Integrity: Guaranteeing data has not been modified or tampered with in transit (Achieved via Cryptographic Hashes & HMACs).
  • Availability: Ensuring authorized users have timely and reliable access to assets (Protected via DDoS mitigation, redundancy, and backups).

2. Cryptographic Fundamentals

Symmetric vs Asymmetric Encryption

FeatureSymmetric EncryptionAsymmetric (Public-Key) Encryption
Key Count1 shared secret key for both encryption & decryptionKey pair: Public key (encrypt) & Private key (decrypt)
SpeedExtremely fast (hardware accelerated)Computationally expensive (~1000x slower)
Common CiphersAES-256, DES, 3DES, ChaCha20RSA, ECC (Elliptic Curve), Diffie-Hellman
Primary UseBulk data encryption at rest and in transitKey exchange, Digital Signatures, SSL/TLS handshake

One-Way Hashing Algorithms

  • A hash function takes arbitrary-length input and produces a fixed-length deterministic output: $H(m) = h$.
  • Properties: Pre-image resistance (cannot reverse $h$ to $m$), second pre-image resistance, collision resistance.
  • Modern Secure Hashes: SHA-256, SHA-3, bcrypt, Argon2 (for passwords). Broken/Insecure: MD5, SHA-1.

Digital Signatures

A digital signature provides Authentication, Integrity, and Non-Repudiation:

  • Sender signs the document hash using their Private Key.
  • Anyone can verify the signature using the sender's Public Key.

3. OWASP Top 10 Web Application Vulnerabilities

  1. SQL Injection (SQLi): Untrusted user input alters database query structure.
    • Remediation: Always use Parameterized Queries (Prepared Statements) or ORMs.
  2. Cross-Site Scripting (XSS): Injecting malicious scripts into web pages viewed by other users.
    • Stored XSS: Injected script permanently stored in database.
    • Reflected XSS: Script reflected off web server via URL parameter.
    • DOM-based XSS: Vulnerability entirely in client-side JavaScript.
    • Remediation: Context-aware output encoding and Content Security Policy (CSP).
  3. Cross-Site Request Forgery (CSRF): Tricking a victim's authenticated browser into sending unauthorized HTTP requests.
    • Remediation: Anti-CSRF tokens and SameSite=Strict cookie flags.
  4. Broken Access Control: Users acting outside their intended permissions (e.g., viewing another user's invoice by changing ID in URL).
Indexed Competency Concepts:
#Cyber Security#Cryptography#OWASP#Encryption#SQL Injection#XSS
Official Standards Verification

Content structured in accordance with Higher Education Commission (HEC) Computing National Curriculum, PSEB TechLift competency standards, and the 120-minute Virtual University assessment model.