Science and Technology · Cyber Security

Cyber Security: Cryptography and identity

Topic 10.2. Syllabus: GS-III · Science and Technology- developments and their applications and effects in every…

Every UPI payment and WhatsApp chat is protected by maths most people never see. In this note, we explain cryptography, digital signatures and Aadhaar-based identity, in simple words.

Comparison of four tools of cryptography: symmetric encryption uses one shared key and is fast like AES, asymmetric encryption uses a public and private key pair like RSA, hashing makes a one-way fingerprint like SHA-256, and a digital signature proves the signer and detects changes

Flow of how a digital signature works: the document is hashed into a fingerprint, the hash is locked with the signer's private key, the receiver opens it with the public key, and if the hashes match the document is genuine and unchanged

Quick answer

Cryptography turns readable data (plaintext) into scrambled data (ciphertext) using a key, so only the right person can read it. It also proves who sent a message and that it was not changed on the way.

The idea is old. Julius Caesar shifted each letter of his messages by three places, so A became D. Anyone who knew the “shift by three” rule could read it. Today’s methods use complex maths, but the principle is the same: a secret key turns sense into nonsense and back.

Cryptography gives four things, often called CIA plus one:

  • Confidentiality: only the right person can read it.
  • Integrity: any change can be detected.
  • Authentication: you know who sent it.
  • Non-repudiation: the sender cannot later deny sending it.

Quick answer

Symmetric encryption, like AES, uses one key for both locking and unlocking; it is fast but the key must be shared safely. Asymmetric encryption, like RSA, uses a public key to lock and a private key to unlock. Hashing makes a fixed-length fingerprint of data that cannot be reversed.

Comparison of four tools of cryptography: symmetric encryption uses one shared key and is fast like AES, asymmetric encryption uses a public and private key pair like RSA, hashing makes a one-way fingerprint like SHA-256, and a digital signature proves the signer and detects changes

The basic tools of cryptography.

A worked example of public and private keys: think of a padlock and its key. You send open padlocks (public key) to everyone. Anyone can snap one shut on a box and send it to you. Only you have the key (private key) to open it. So strangers can send you secrets without ever meeting to swap a key.

In practice, both are used together. When you open a bank website, asymmetric encryption is used first to agree on a secret key safely, and then fast symmetric encryption protects the rest of the session. This is what the padlock icon in your browser means.

Hashing is different: it is one-way. Passwords are stored as hashes, so even if a website is hacked, the attacker gets fingerprints, not the passwords themselves. Change one letter of the input and the hash changes completely.

Practice matters while you read. Try a few questions on this topic.

Quick answer

A digital signature is an electronic method of signing a document using a private key. Anyone can verify it with the matching public key. It proves who signed and that the content is unchanged. The IT Act, 2000 gives digital and electronic signatures legal validity.

Asked by UPSC · UPSC Prelims 2019 · Q94

  1. Consider the following statements:A digital signature is
  2. an electronic record that identifies the certifying authority issuing it
  3. used to serve as a proof of identity of an individual to access information or server on Internet
  4. an electronic method of signing an electronic document and ensuring that the original content is unchanged
  5. Which of the statements given above is/are correct?
  1. 1 only
  2. 2 and 3 only
  3. 3 only
  4. 1, 2 and 3

Show answer

Answer: (c). c. 3 only: a digital signature is an electronic method of signing that ensures content is unchanged; a digital signature certificate (not the signature) identifies the certifying authority; proof of identity to access a server is authentication, not a digital signature.

Flow of how a digital signature works: the document is hashed into a fingerprint, the hash is locked with the signer's private key, the receiver opens it with the public key, and if the hashes match the document is genuine and unchanged

The four steps of a digital signature.

In India, the Controller of Certifying Authorities, under MeitY, licenses bodies that issue Digital Signature Certificates. Companies use these for tax filings and tenders. Aadhaar eSign lets a person sign online using an Aadhaar OTP, without a physical token.

A Prelims trap: do not confuse the signature with the certificate. The certificate is like an ID card issued by a trusted authority that links a public key to a person. The signature is the act of signing with the private key.

Asked by UPSC · Prelims 2019 · Q94

Quoted from a previous paper. Tap an option to check.

Consider the following statements:A digital signature is 1. an electronic record that identifies the certifying authority issuing it 2. used to serve as a proof of identity of an individual to access information or server on Internet 3. an electronic method of signing an electronic document and ensuring that the original content is unchanged Which of the statements given above is/are correct?

Answer: (c). Answer: (c). c. 3 only: a digital signature is an electronic method of signing that ensures content is unchanged; a digital signature certificate (not the signature) identifies the certifying authority; proof of identity to access a server is authentication, not a digital signature.

Quick answer

A blockchain is a shared record copied across many computers. Each block holds the hash of the previous block, so changing any old record breaks the chain. Public blockchains can be inspected by anyone and no single user controls them.

Asked by UPSC · UPSC Prelims 2020 · Q40

  1. With reference to “Blockchain Technology”, consider the following statements:
  2. It is a public ledger that everyone can inspect, but which no single user controls.
  3. The structure and design of blockchain is such that all the data in it are about cryptocurrency only.
  4. Applications that depend on basic features of blockchain can be developed without anybody’s permission.
  5. Which of the statements given above is/are correct?
  1. 1 only
  2. 1 and 2 only
  3. 2 only
  4. 1 and 3 only

Show answer

Answer: (d). d. 1 and 3: public ledger that anyone can inspect and no single user controls; applications can be built without permission on public blockchains; blockchain data is not only about cryptocurrency (statement 2 wrong).

TypeWho can joinExample use
PublicAnyoneBitcoin, Ethereum
PrivateOne organisation decidesInternal company records
ConsortiumA group of organisationsBanks sharing trade finance data

Blockchain is used beyond crypto: land records, supply chain tracking, certificates and trade finance. India’s National Blockchain Framework and pilots in land records in some states show public uses.

Asked by UPSC · Prelims 2020 · Q40

Quoted from a previous paper. Tap an option to check.

With reference to “Blockchain Technology”, consider the following statements: 1. It is a public ledger that everyone can inspect, but which no single user controls. 2. The structure and design of blockchain is such that all the data in it are about cryptocurrency only. 3. Applications that depend on basic features of blockchain can be developed without anybody’s permission. Which of the statements given above is/are correct?

Answer: (d). Answer: (d). d. 1 and 3: public ledger that anyone can inspect and no single user controls; applications can be built without permission on public blockchains; blockchain data is not only about cryptocurrency (statement 2 wrong).

Quick answer

Large quantum computers could break RSA and similar public-key methods. So new “post-quantum” methods are being adopted. Quantum key distribution (QKD) uses physics to share keys so that any spying is detected.

The danger is called “harvest now, decrypt later”. A hostile agency can record encrypted government or bank traffic today and store it. When quantum computers become strong enough, it can unlock old secrets. That is why sensitive systems are being upgraded years in advance.

In August 2024, the US standards body NIST published its first post-quantum encryption standards. India’s National Quantum Mission, approved in 2023, includes secure quantum communication as a key goal, and Indian labs have demonstrated QKD links over fibre and through free space.

A Connect-the-dots link: this is a national security issue, not just a tech one. Defence, banking and power grids all depend on encryption that must stay safe for decades.

Open Mains evaluation and try one answer on this topic.

Quick answer

Aadhaar is a 12-digit number linked to a person’s fingerprints, iris and face, issued by UIDAI under the Aadhaar Act, 2016. Open APIs let any app or device authenticate a person using OTP, fingerprint, iris or face.

Asked by UPSC · UPSC Prelims 2018 · Q17

  1. The identity platform ‘Aadhaar’ provides open “Application Programming Interfaces (APIs)”. What does it imply?
  2. It can be integrated into any electronic device.
  3. Online authentication using iris is possible.
  4. Select the correct answer using the code given below:
  1. 1 only
  2. 2 only
  3. Both 1 and 2
  4. Neither 1 nor 2

Show answer

Answer: (c). c. Both: open APIs allow integration into any electronic device; online authentication using iris is possible.

  • Virtual ID: a temporary 16-digit number that can be used in place of Aadhaar.
  • Masked Aadhaar: shows only the last four digits.
  • Offline verification: signed QR code or XML file, without sharing the full number.
  • Face authentication: helps elderly people whose fingerprints have worn out.

A worked example: an elderly farmer’s fingerprints fail at the ration shop because years of manual work have worn them down. Iris or face authentication solves this. Without such options, people get wrongly denied food grains, which is a real problem reported in many states.

Asked by UPSC · Prelims 2018 · Q17

Quoted from a previous paper. Tap an option to check.

The identity platform ‘Aadhaar’ provides open “Application Programming Interfaces (APIs)”. What does it imply? 1. It can be integrated into any electronic device. 2. Online authentication using iris is possible. Select the correct answer using the code given below:

Answer: (c). Answer: (c). c. Both: open APIs allow integration into any electronic device; online authentication using iris is possible.

Quick answer

In September 2018, a five-judge bench upheld Aadhaar for welfare paid from the Consolidated Fund of India and for linking with PAN. It struck down Section 57, so private firms cannot force people to use Aadhaar. It also limited storage of authentication records to six months.

Asked by UPSC · UPSC Prelims 2020 · Q1

  1. Consider the following statements:
  2. Aadhaar metadata cannot be stored for more than three months.
  3. State cannot enter into any contract with private corporations for sharing of Aadhaar data.
  4. Aadhaar is mandatory for obtaining insurance products.
  5. Aadhaar is mandatory for getting benefits funded out of the Consolidated Fund of India.
  6. Which of the statements given above is/are correct?
  1. 1 and 4 only
  2. 2 and 4 only
  3. 3 only
  4. 1, 2 and 3 only

Show answer

Answer: (b). b. 2 and 4: state cannot contract with private firms to share Aadhaar data; Aadhaar mandatory for CFI-funded benefits; metadata may be kept for six months, not three (statement 1 wrong); not mandatory for insurance (statement 3 wrong).

Aadhaar is mandatory forAadhaar is not mandatory for
Welfare benefits from the Consolidated Fund of IndiaBank accounts
Linking with PANMobile phone connections
Filing income tax returnsSchool admissions and exams like NEET and CBSE

After the judgment, Parliament amended the law in 2019 to allow voluntary use of Aadhaar for bank KYC and mobile connections. A child gets to choose at 18 whether to keep the Aadhaar number.

A Mains angle: Aadhaar shows the trade-off between efficient welfare and privacy. Write about savings from removing fake beneficiaries, and also about exclusion errors and data leaks, and the need for the DPDP Act’s safeguards.

Asked by UPSC · Prelims 2020 · Q1

Quoted from a previous paper. Tap an option to check.

Consider the following statements: 1. Aadhaar metadata cannot be stored for more than three months. 2. State cannot enter into any contract with private corporations for sharing of Aadhaar data. 3. Aadhaar is mandatory for obtaining insurance products. 4. Aadhaar is mandatory for getting benefits funded out of the Consolidated Fund of India. Which of the statements given above is/are correct?

Answer: (b). Answer: (b). b. 2 and 4: state cannot contract with private firms to share Aadhaar data; Aadhaar mandatory for CFI-funded benefits; metadata may be kept for six months, not three (statement 1 wrong); not mandatory for insurance (statement 3 wrong).

  • Symmetric: one key (AES). Asymmetric: key pair (RSA). Hash: one-way (SHA-256).
  • Digital signature: method of signing; certificate identifies the authority.
  • Blockchain: not only for crypto.
  • Aadhaar records: six months. Mandatory: CFI benefits and PAN.
  • Section 57 of the Aadhaar Act: struck down in 2018.
  • First NIST post-quantum standards: August 2024.

Mains angle

  • How to use: use this for questions on encryption, digital signatures, blockchain, quantum security and Aadhaar.
  • Points to write: basics, encryption types, signatures, blockchain, quantum threat, Aadhaar features and judgment.
  • Conclusion line: Trust in digital India rests on strong cryptography and fair rules for identity.

###

What is the difference between symmetric and asymmetric encryption?

Symmetric encryption uses one shared key to lock and unlock data. Asymmetric encryption uses a pair: a public key to lock and a private key to unlock.

What is a digital signature?

An electronic way of signing a document using a private key. Anyone with the public key can check who signed it and that it was not changed.

What did the Supreme Court say about Aadhaar in 2018?

It upheld Aadhaar for welfare benefits and PAN, but struck down its compulsory use by private firms and for bank accounts and mobile connections.

What is post-quantum cryptography?

New encryption methods designed to stay safe even against future quantum computers.

Prelims fact

  • A digital signature is a method of signing, not a record that identifies the certifying authority.
  • Blockchain data is not only about cryptocurrency.
  • Aadhaar authentication records can be kept for six months, not three.
  • Aadhaar is mandatory for benefits paid from the Consolidated Fund of India, not for insurance or bank accounts.
  • Aadhaar authentication can use OTP, fingerprint, iris or face.

Mains angle

How to use: use this for questions on encryption, digital signatures, blockchain, quantum security and Aadhaar.

  1. How to use: use this for questions on encryption, digital signatures, blockchain, quantum security and Aadhaar.
  2. Points to write: basics, encryption types, signatures, blockchain, quantum threat, Aadhaar features and judgment.
  3. Conclusion line: Trust in digital India rests on strong cryptography and fair rules for identity.

Open Mains evaluation

The evaluator opens with a blank question. It does not prefill this prompt. Paste the question if you want an answer marked. A free account can submit two evaluations a day.

Practice

Practice MCQs (9)

Practice 1

Q1 · Practice

When a website stores user passwords securely, it 'salts' them before hashing. Salting means

Answer: (a). A salt is a random value, unique to each account, that is combined with the password before it is passed through a one-way hash function; both the salt and the resulting hash are stored. If two users choose the same password, their stored hashes still differ, and an attacker who steals the database cannot use a ready-made 'rainbow table' of common passwords and their hashes but must attack every password separately. NIST SP 800-63B requires passwords to be salted and hashed with a suitable password-hashing scheme. Encryption that can be reversed is the wrong tool, because sites should never be able to recover a password; they verify it by hashing the entered value again and comparing.

Practice 2

Q2 · Practice

In India's Public Key Infrastructure, the Root Certifying Authority of India (RCAI), which sits at the top of the trust hierarchy and certifies the public keys of licensed Certifying Authorities, is operated by

Answer: (b). The Controller of Certifying Authorities (CCA), set up under section 17 of the IT Act on 1 November 2000 within the IT ministry, operates the Root Certifying Authority of India. Section 18(b) gives the Controller the function of 'certifying public keys of the Certifying Authorities'; the RCAI's own root certificate is self-signed and forms the top of India's PKI. Licensed CAs (for example eMudhra and IDRBT's CA for the banking sector) then issue Digital Signature Certificates to individuals and organisations. The CCA also lays down standards for CAs, supervises them and empanels eSign service providers. CERT-In handles incident response, RBI regulates banking and IDRBT, a banking technology institute, is itself one of the licensed CAs, not the root.

Practice 3

Q3 · Practice

With reference to electronic authentication under the Information Technology Act, 2000, consider the following statements: 1. A subscriber may authenticate an electronic record by affixing a digital signature, which uses an asymmetric crypto system and a hash function. 2. Any person can verify an electronic record so authenticated by using the public key of the subscriber. 3. After the 2008 amendment, a subscriber may also use other reliable electronic signature or authentication techniques specified in the Second Schedule of the Act. Which of the statements given above is/are correct?

Answer: (d). All three statements are correct. Section 3 of the IT Act says authentication of an electronic record 'shall be effected by the use of asymmetric crypto system and hash function', and section 3(3) adds that 'any person by the use of a public key of the subscriber can verify the electronic record'; the private and public keys form a unique functioning key pair. The Act also defines the hash function as one that always gives the same result for the same input and makes it computationally infeasible to reconstruct the record or to find two records with the same result. The IT (Amendment) Act 2008 inserted section 3A (in force from 27 October 2009), which made the law technology-neutral by allowing any reliable 'electronic signature' technique notified in the Second Schedule, alongside digital signatures.

Practice 4

Q4 · Practice

Anita wants to send a confidential file to Bharat and also wants Bharat to be sure that the file really came from her. Both use public-key cryptography. Consider the following statements: 1. To keep the file confidential, Anita should encrypt it with Bharat's public key. 2. To sign the file, Anita should use her own public key. 3. Bharat can verify Anita's signature by using Anita's public key. Which of the statements given above is/are correct?

Answer: (b). Statements 1 and 3 are correct. Two different goals need two different keys. For confidentiality, the sender locks the data with the recipient's public key; only the recipient's private key can unlock it, so even Anita cannot decrypt the file once it is encrypted. For authenticity, the sender signs with her own private key, which only she holds, and anyone can verify with her public key; this is exactly how section 3 of the IT Act describes verification 'by the use of a public key of the subscriber'. Statement 2 is wrong: a signature made with a public key would prove nothing, because the public key is known to everyone. In practice, the file is encrypted with a random symmetric key, and only that key is wrapped with Bharat's public key.

Practice 5

Q5 · Practice

When a browser opens a website over HTTPS (using the TLS protocol), public-key cryptography is mainly used to

Answer: (a). In TLS (the current version is TLS 1.3, RFC 8446), the handshake does two jobs with public-key cryptography. First, the server proves its identity by presenting a certificate signed by a trusted Certifying Authority and by signing handshake data with its private key. Second, the two sides run a key exchange (typically elliptic-curve Diffie-Hellman) to derive shared secret keys. From then on, the actual traffic is protected by a fast symmetric authenticated cipher such as AES-GCM. TLS does not compress pages for speed, and it does not hide the user's IP address from the site; anonymity needs other tools such as Tor, and even a VPN only shifts trust to the VPN operator.

Practice 6

Q6 · Practice

Consider the following statements about encryption: 1. In symmetric-key encryption, such as the Advanced Encryption Standard (AES), the same secret key is used both to encrypt and to decrypt the data. 2. In asymmetric (public-key) encryption, data encrypted with a person's public key can be decrypted only with that person's matching private key. 3. Asymmetric algorithms are much faster than symmetric ones, which is why they are preferred for encrypting large volumes of data. Which of the statements given above is/are correct?

Answer: (c). Statements 1 and 2 are correct. Symmetric ciphers use one shared secret key; AES, standardised by NIST in FIPS 197 (2001), is the best-known example and works on 128-bit blocks with 128, 192 or 256-bit keys. Asymmetric cryptography, introduced publicly by Diffie and Hellman in 1976 and made practical by RSA, uses a mathematically linked key pair: what one key locks, only the other can unlock, so the public key can be shared openly. Statement 3 reverses the truth. Public-key operations are far slower, so real systems such as HTTPS use a hybrid design: public-key methods authenticate the parties and agree a session key, and a fast symmetric cipher then encrypts the bulk data.

Practice 7

Q7 · Practice

Consider the following statements about digital certificates: 1. A digital certificate binds a public key to the identity of its holder and is itself digitally signed by the Certifying Authority that issues it. 2. Under the Information Technology Act, 2000, one of the functions of the Controller of Certifying Authorities is to certify the public keys of the Certifying Authorities. 3. A certificate includes the holder's private key so that a recipient can check the holder's signature. Which of the statements given above is/are correct?

Answer: (a). Statements 1 and 2 are correct. A digital certificate (in practice an X.509 certificate) contains the holder's name or domain, the holder's public key, a validity period, the issuer's name and the issuer's signature over all this data. Anyone who trusts the issuer can check that signature and so trust that the key belongs to the named holder. In India, section 18(b) of the IT Act lists 'certifying public keys of the Certifying Authorities' among the Controller's functions, which the CCA performs through the Root Certifying Authority of India. Statement 3 is wrong and dangerous: the private key never goes into a certificate. It stays secret with the holder (on a USB token, smart card or secure hardware), and a signature is checked with the public key.

Practice 8

Q8 · Practice

Consider the following statements about websites that use HTTPS: 1. The padlock icon shows that the connection is encrypted and that the site presented a valid certificate for its domain name, but it does not prove that the website is honest. 2. A certificate has a fixed validity period and can be revoked by the issuing authority before it expires, for example if the private key is compromised. 3. Browsers automatically trust self-signed certificates, because the website owner has signed them personally. Which of the statements given above is/are correct?

Answer: (c). Statements 1 and 2 are correct. A valid certificate proves control of a domain name, not good intent. The FBI's public service announcement of 10 June 2019 warned that phishers increasingly obtain free certificates so that fake sites show HTTPS and the padlock, and told users not to trust a site just because of them. Certificates carry 'not before' and 'not after' dates, and a CA can revoke a certificate early, publishing it in a certificate revocation list (CRL) or through online status checks, if the key is stolen or the details are wrong. Statement 3 is false: a self-signed certificate is signed by its own key, so it guarantees integrity but not authenticity (NIST); browsers show a warning unless the user or an organisation installs it as trusted.

Practice 9

UPSC Prelims 2017 · GS Paper I

In India, it is legally mandatory for which of the following to report on cyber security incidents ? - 1. Service providers - 2. Data centres - 3. Body corporate Select the correct answer using the code given below :

Answer: (d). All three must report cyber incidents (d). Under **Section 70B** of the **IT Act, 2000** and the **CERT-In Rules, 2013**, **service providers** (1), **data centres** (2), **body corporates** (3) and intermediaries must report cyber security incidents to **CERT-In** (the Indian Computer Emergency Response Team, under MeitY). CERT-In's **April 2022 directions** set a **six-hour** reporting deadline. They also require logs to be kept for 180 days, and VPN providers must store user details for five years. Critical sectors are protected by **NCIIPC** under Section 70A. Notice the related laws: the **Digital Personal Data Protection Act, 2023** and its **2025 Rules**, which add a duty to report data breaches to the **Data Protection Board**. Answer as per the official UPSC answer key. [Open this question's page →]()

Turn this note into today’s plan, so it has a time of day.

Remember

  • 1 Cryptography is the science of keeping information secret and proving it is genuine.
  • 2 Symmetric encryption uses one shared key. Asymmetric encryption uses a public key and a private key.
  • 3 A digital signature proves who signed an electronic document and that it has not been changed.
  • 4 Quantum computers could break today's public-key encryption, so countries are moving to post-quantum cryptography.
  • 5 Aadhaar is India's digital identity. The Supreme Court upheld it in 2018 but limited its compulsory use.

Flashcards

Cryptography behind digital signatures?

Public key (asymmetric).

Law giving digital signatures legal validity?

IT Act, 2000.

Who licenses Certifying Authorities?

Controller of Certifying Authorities (CCA).

Biometrics besides fingerprints (UPSC

2014)? Iris, retina, voice.

Can Aadhaar authenticate with iris?

Yes.

Questions students ask

What is the difference between symmetric and asymmetric encryption?

Symmetric encryption uses one shared key to lock and unlock data. Asymmetric encryption uses a pair: a public key to lock and a private key to unlock.

What is a digital signature?

An electronic way of signing a document using a private key. Anyone with the public key can check who signed it and that it was not changed.

What did the Supreme Court say about Aadhaar in 2018?

It upheld Aadhaar for welfare benefits and PAN, but struck down its compulsory use by private firms and for bank accounts and mobile connections.

What is post-quantum cryptography?

New encryption methods designed to stay safe even against future quantum computers.

Where to go next

To study this note properly, place it in your daily schedule and keep the slot.