Security principles, ciphers, wireless and mobile
Topics: Confidentiality, integrity, authentication, non-repudiation; attacks: virus, worm, trojan, phishing, spoofing; symmetric and asymmetric encryption; hash functions; digital signatures; firewalls, SSL; cellular concept, GSM and CDMA, generations.
Security goals and attacks
Security aims at confidentiality, integrity and availability (the CIA triad), plus authentication and non-repudiation. Malware: viruses attach to files, worms spread by themselves, trojans pose as useful programs, ransomware encrypts data for money. Social attacks: phishing, spoofing. Denial-of-service attacks target availability.
- CIA: confidentiality, integrity, availability
- Worm spreads alone; virus needs a host
- Phishing tricks people
Example: An email asks you to “verify” your bank password on a look-alike site. Which attack is this?
- It deceives a person into giving credentials.
- Phishing.
Answer: Phishing
Example: Which goal does a denial-of-service attack target?
- It makes a service unusable for real users.
- Availability.
Answer: Availability
Cryptography
Symmetric ciphers (AES, DES) use one shared key; asymmetric ciphers (RSA) use a public key to encrypt and a private key to decrypt. In RSA, n = pq, φ = (p − 1)(q − 1), choose e coprime with φ and d with ed ≡ 1 (mod φ); C = Mᵉ mod n and M = Cᵈ mod n. Hash functions (SHA-256) give a fixed-length digest; digital signatures encrypt a hash with the sender’s private key.
- Symmetric: one key; asymmetric: key pair
- C = Mᵉ mod n; M = Cᵈ mod n
- Signature: hash + private key
Example: Encrypt HELLO with a Caesar shift of 3.
- H→K, E→H, L→O, L→O, O→R.
- KHOOR.
Answer: KHOOR
Example: RSA with p = 3, q = 11, e = 7: find d and encrypt M = 4.
- n = 33, φ = 20; 7 × 3 = 21 ≡ 1, so d = 3.
- C = 4⁷ mod 33 = 16 (check: 16³ mod 33 = 4).
Answer: d = 3; C = 16
Network security and mobile systems
Firewalls filter traffic by rules; TLS (HTTPS) authenticates servers with certificates and encrypts sessions; VPNs tunnel traffic. Cellular systems reuse frequencies in clusters of N cells, N = i² + ij + j² (3, 4, 7, …). GSM uses TDMA with 200 kHz carriers and 8 time slots; CDMA separates users by codes.
- TLS: certificates + encryption
- Cluster N = i² + ij + j²
- GSM: 200 kHz, 8 slots
Example: Find the cluster size for i = 2, j = 1.
- N = 4 + 2 + 1.
- = 7.
Answer: 7
Security services are confidentiality, integrity, authentication, non-repudiation, access control and availability. Symmetric ciphers (DES 56-bit key, AES 128–256) use one shared key and are fast. Asymmetric ciphers (RSA) use a public and private key pair, and solve key distribution. Hash functions (SHA-256) give fixed-length digests; a digital signature encrypts a hash with the sender’s private key. Firewalls filter traffic; TLS secures web traffic. Mobile networks divide coverage into cells and reuse frequencies among clusters, GSM uses TDMA/FDMA and SIM cards, and generations run from 2G digital voice to 5G high data rate. Bluetooth and Wi-Fi are short-range.
- Caesar cipher shifts letters by a fixed amount.
- Passive attacks read; active attacks alter.
- RSA relies on the difficulty of factoring.
- Handoff transfers a call between cells.
- Phishing tricks users through fake pages.
Key formulas
- C = P + k mod 26
- RSA: C = Mᵉ mod n
- H(M) fixed length
Practice questions
Symmetric encryption uses
- one shared key
- two keys
- no key
- a hash only
Show the answer
Answer: A. one shared key DES, AES.
RSA is
- asymmetric
- symmetric
- a hash
- a virus
Show the answer
Answer: A. asymmetric Public key.
A digital signature is verified with the sender’s
- public key
- private key
- password
- hash only
Show the answer
Answer: A. public key Anyone can check.
DES key length is
- 56 bits
- 128 bits
- 256 bits
- 1024 bits
Show the answer
Answer: A. 56 bits Effective.
SHA-256 is a
- hash function
- cipher
- firewall
- protocol
Show the answer
Answer: A. hash function Digest.
A self-spreading network program is a
- worm
- trojan
- cookie
- macro only
Show the answer
Answer: A. worm No host needed.
Phishing aims to
- steal credentials
- cool servers
- clean disks
- speed networks
Show the answer
Answer: A. steal credentials Social engineering.
GSM phones use
- SIM cards
- floppy disks
- crystals only
- tapes
Show the answer
Answer: A. SIM cards Subscriber identity.
Handoff occurs when
- a user moves between cells
- the battery dies
- the phone reboots
- the SIM is removed
Show the answer
Answer: A. a user moves between cells Call continues.
The principle that a sender cannot deny sending is
- non-repudiation
- availability
- confidentiality
- access control
Show the answer
Answer: A. non-repudiation Proof of origin.
The practice questions were written for this studio; they are not copied from ASTU papers. ASTU publishes no topic syllabus for these exams, so the topics are an informed guide based on diploma courses, not an official list.