0% found this document useful (0 votes)
231 views6 pages

Understanding Digital Signatures in India

Digital signatures use public key cryptography to verify the identity of a document's signer. A digital signature is generated by encrypting a document hash with the signer's private key. Anyone can then verify the signature by decrypting it with the signer's public key and comparing the decrypted hash to a newly generated hash of the document. This ensures the document was not altered after signature. Digital signatures offer security, legal validity, cost savings over paper documents, and environmental benefits compared to traditional wet signatures. Different classes of digital signatures provide varying levels of identity verification depending on the signature use case.

Uploaded by

Vaishnavi/ven .P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
231 views6 pages

Understanding Digital Signatures in India

Digital signatures use public key cryptography to verify the identity of a document's signer. A digital signature is generated by encrypting a document hash with the signer's private key. Anyone can then verify the signature by decrypting it with the signer's public key and comparing the decrypted hash to a newly generated hash of the document. This ensures the document was not altered after signature. Digital signatures offer security, legal validity, cost savings over paper documents, and environmental benefits compared to traditional wet signatures. Different classes of digital signatures provide varying levels of identity verification depending on the signature use case.

Uploaded by

Vaishnavi/ven .P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Digital Signature Overview
  • How Digital Signatures Work
  • Benefits of Digital Signatures
  • Digital Signature Security
  • Implementation: RSA Algorithm
  • References
  • Applications of Digital Signatures

Expt 2 – Cyber Laws

Digital signature

What is a digital signature?

A digital signature is a mathematical method for confirming the veracity and consistency of a
digital message, document, or piece of software. It gives much more intrinsic security than a
handwritten signature or stamped seal, yet it is the digital version of them. The issue of tampering
and impersonation in digital communications is addressed by a digital signature.

The origin, identity, and status of electronic documents, transactions, or digital messages can
be verified using digital signatures. They can also be used by signers to confirm informed consent.
Digital signatures are regarded as being equally as legally binding as traditional handwritten
document signatures in many nations, including the United States.

Why are digital signatures required?

As more business is done online, agreements and transactions that were once signed on paper
and delivered physically are gradually being replaced by totally digital papers and workflows. Every
time priceless or sensitive material is shared, there are frequently bad actors present who wish to
steal it or use it for their own gain. Businesses must be able to verify and authenticate that these
crucial business documents, data, and communications are trusted and delivered securely in order to
reduce the risk of document manipulation by malicious parties.

Digital signatures safeguard private information while without obstructing the efficiency of
online document workflows; in contrast to paper procedures, they frequently enhance document
management. The use of digital signatures makes document signing straightforward and accessible
from any computer or mobile device. Additionally, because the digital signature is included into the
file, it may be used on any device and anyplace the information is transferred. Digitally signed
documents are also simple to regulate and keep track of because they provide the status of all
documents, allow you to know whether they have been signed, and provide you an audit trail.

How do digital signatures work?

Public key cryptography, commonly referred to as asymmetric cryptography, is the foundation


of digital signatures. Two keys are generated using a public key method, such as Rivest-Shamir-
Adleman (RSA), to produce a pair of keys that are mathematically linked: one private and one public.

Public key cryptography's two mutually authenticating cryptographic keys are how digital
signatures function. The person who generates the digital signature uses a private key to encrypt the
data associated with the signature for encryption and decryption. With the signer's public key, that
data can only be decrypted.

The signature or the document may be flawed if the recipient is unable to open the file using
the signer's public key. This is how the authenticity of digital signatures works.

(The mathematical algorithm generates a public key and a private key that is linked to each other. When a signer
electronically signs a document, the mathematical algorithm generates data pertaining to the signed document by the
signer, and the data is then encrypted. This data is also called a cryptographic hash. A hash function is a fixed-length
string of numbers and letters generated from a mathematical algorithm. This generated string is unique to the file being
hashed and is a one-way function, a computed hash cannot be reversed to find other files that may generate the same
hash value. The signer has sole access to the private key and this private key is used to encrypt the document data. The
encrypted information or encrypted hash is then transmitted and can be decrypted only by the signer’s public key. The
receiver who receives the document also receives a copy of the signer’s public key which is used to decrypt the
signature. A cryptographic hash is again generated on the receiver’s side. Both cryptographic hashes are checked to
validate their authenticity. The document is considered genuine if they match.

Certificate Authority who are Trust Service Providers(TSP) provides digital certificates to ensure that the keys
generated and documents signed are created in a secure environment.
Digital certificates help to validate the holder of a certificate. Digital certificates contain the public key of the
sender and are digitally signed by a Certificate authority.

Public key infrastructure (PKI) includes regulations, protocols, rules, people, and systems that aid the
distribution of public keys and the identity validation of users with digital certificates and a certificate authority.)

What are the benefits of digital signatures?

Digital signatures offer the following benefits:

1. Security. Digital signatures include security features to guarantee that a legal document hasn't
been altered and that signatures are genuine. Asymmetric cryptography, PINs, checksums, and
cyclic redundancy checks (CRCs), as well as CA and trust service provider (TSP) validation, are
security features.
2. Timestamping. This gives the time and date of a digital signature and is helpful in situations
where timeliness is important, such stock exchanges, the sale of lottery tickets, and judicial
processes.
3. Globally accepted and legally compliant. The vendor-generated keys are created and stored
securely according to the public key infrastructure (PKI) standard. As digital signatures become
the norm globally, more nations are recognising their legal significance.
4. Cost reductions. By becoming paperless, businesses can save money on the materials, labour,
employees, and office space traditionally required to store, handle, and transfer papers.
5. Favourable environmental outcomes. Reducing paper use also lessens the physical waste
paper produces and the harmful effects that moving paper documents has on the
environment.
6. Traceability. With the use of digital signatures, firms can maintain internal records more easily.
There are less opportunities for a manual signer or record keeper to make a mistake or lose
something when everything is recorded and stored digitally.

Classes and types of digital signatures

There are three different classes of digital signature certificates (DSCs) as follows:

 Class 1. Since they are solely validated based on an email ID and username, this sort of DSC
cannot be used for official business documents. Class 1 signatures offer a fundamental level of
security and are applied in settings where there is little chance of data compromise.
 Class 2. The electronic filing (e-filing) of tax papers, such as income tax returns and goods and
services tax filings, frequently uses these DSCs. Class 2 digital signatures check the identity of
the signer against a database that has already been confirmed. In settings with moderate risks
and effects of data compromise, class 2 digital signatures are utilised.
 Class 3. Class 3 signatures—the highest level of digital signatures—require signers to physically
appear before a CA to establish their identity. E-auctions, e-tendering, e-ticketing, court filings,
and other settings where there are significant risks to data or repercussions from a security
breach utilise class 3 digital signatures.

Digital signature security

Security is the main benefit of using digital signatures. Security features and methods used in digital
signatures include the following:

1. PINs, passwords and codes. These are used to authenticate and verify a signer's identity and
approve their signature. Email, username and password are the most common methods used.
2. Asymmetric cryptography. This employs a public key algorithm that includes private and public
key encryption and authentication.
3. Checksum. This long string of letters and numbers is used to determine the authenticity of
transmitted data. A checksum is the result of running a cryptographic hash function on a piece
of data. The value of the original checksum file is compared against the checksum value of the
calculated file to detect errors or changes. A checksum acts like a data fingerprint.
4. CRC. A type of checksum, this error-detecting code and verification feature is used in digital
networks and storage devices to detect changes to raw data.
5. CA validation. CAs issue digital signatures and act as trusted third parties by accepting,
authenticating, issuing and maintaining digital certificates. The use of CAs helps avoid the
creation of fake digital certificates.
6. TSP validation. This person or legal entity validates a digital signature on a company's behalf
and offers signature validation reports.

Digital signature attacks

Possible attacks on digital signatures include the following:

 Chosen-message attack. The attacker either obtains the victim's public key or tricks the victim
into digitally signing a document they don't intend to sign.
 Known-message attack. The attacker obtains messages the victim sent and a key that enables
the attacker to forge the victim's signature on documents.
 Key-only attack. The attacker only has access to the victim's public key and can re-create the
victim's signature to digitally sign documents or messages that the victim doesn't intend to
sign.

Digital signature tools

 Adobe Acrobat Sign


 DocuSign standards-based services
 Dropbox Sign
 GlobalSign
 PandaDoc
 ReadySign
 Signeasy
 SignNow

Implementation: Digital signature using RSA algorithm

import [Link];
public class RSAExample {

public static void main(String[] args) {

BigInteger p = new BigInteger("61");


BigInteger q = new BigInteger("53");

BigInteger n = [Link](q);//p*q

BigInteger phi = [Link]([Link]).multiply([Link]([Link]));//(p-1)(q-1)

BigInteger e = new BigInteger("17"); //relatively prime to phi

BigInteger d = [Link](phi);
//public key:(e, n)
//private key:(d, n)

BigInteger message = new BigInteger("2023");


BigInteger signature = [Link](d,n); //private
BigInteger decryptedSignature = [Link](e,n); //public

[Link]("Original Message: " + message);


[Link]("Generated Signature: " + signature);
[Link]("Decrypted Signature: " + decryptedSignature);

if ([Link](message)) {
[Link]("Signature is valid.");
} else {
[Link]("Signature is not valid.");
}
}
}
Applications of Digital signature
 To send and receive secure, digitally signed, and encrypted emails
 To engage in safe online transactions
 To recognise those involved in an online transaction
 e-filing income tax returns, tender applications, registrar of companies (MCA) filings, and other
pertinent applications
 Word, Excel, and PDF document types to sign and validate

References –

[Link]

[Link]

[Link]

Common questions

Powered by AI

Misuse of public keys in digital signatures presents several security risks including chosen-message attacks, known-message attacks, and key-only attacks. In a chosen-message attack, an attacker may obtain the victim's public key or manipulate the victim into signing a document unknowingly. In a known-message attack, the attacker uses the public key and previously sent messages to forge the victim's signature. A key-only attack involves using just the public key to recreate a victim's signature on unauthorized documents. These attacks exploit the public key's accessibility to create fraudulent signatures or documents .

The RSA algorithm facilitates digital signatures by employing asymmetric cryptography to generate a pair of keys: a private key and a public key. A message is signed using the private key, creating a unique encrypted signature (or cryptographic hash) that can only be decrypted by the corresponding public key. This mechanism ensures that if a receiver can validate the signature using the public key, the message's integrity is intact and originated from the holder of the public key. RSA's security relies on the computational difficulty of factoring large integers, which prevents attackers from easily deriving the private key from the public key .

Digital signatures contribute to environmental sustainability by reducing paper usage, which lessens physical waste production and the adverse environmental impacts associated with paper manufacturing and document transportation. As businesses move towards paperless operations, the physical waste generated by traditional document handling is minimized, leading to more environmentally friendly practices in document management and reducing overall carbon footprints .

Class 1 digital signature certificates are most appropriate in scenarios where there is low risk of data compromise, as they provide only a basic level of security. They may be used for applications where the identity of the signer needs to be validated based solely on an email ID and a username, making them suitable for non-critical applications such as internal email communications where stringent security measures are not necessary .

Certificate Authorities (CAs) and Trust Service Providers (TSPs) are critical in the digital signature process as they offer validation services. CAs issue digital certificates that contain the public key of the sender, verifying the identity of the certificate holder and ensuring that digital keys are generated and maintained in a secure environment. TSPs also provide validation reports for digital signatures, ensuring that each signature can be trusted by verifying the public key infrastructure (PKI) compliance which helps prevent fake digital certificates .

Digital signatures contribute to cost savings by enabling businesses to go paperless, thus saving money on materials and labor associated with handling, storing, and transferring paper documents. By reducing the reliance on physical office space, staff, and resources needed for paper document management, digital signatures streamline operations and enhance efficiency. Furthermore, as digital signatures are legally accepted, they remove the need for additional logistical steps like postal handling, reducing overall operational costs .

Digital signatures enhance security in online document workflows by employing public key cryptography which creates a unique way to confirm the authenticity of a message or document. Unlike traditional paper processes, digital signatures are harder to tamper with due to their use of asymmetric cryptography where a private key generates a signature that can only be decrypted by the corresponding public key. This ensures the integrity and authenticity of the document. Additionally, digital signatures provide an audit trail, showing the document's status and ensuring it hasn't been altered, which is more secure than relying on physical handling of documents that can be easily lost or forged .

To prevent forgery and ensure validity, digital signatures implement several measures including the use of PINs, passwords, and codes to authenticate signer identity. Asymmetric cryptography secures the signing process with a private key creating a unique signature that can only be decrypted by the related public key. Checksum and cyclic redundancy checks (CRCs) assist in detecting any unauthorized changes in data. Certificate Authorities (CAs) validate digital certificates to ensure legitimacy, preventing fake signatures, while Trust Service Providers (TSPs) validate the entire signing process and provide additional verification through signature validation reports .

A cryptographic hash in the digital signature process is a fixed-length string of numbers and letters generated from a mathematical algorithm applied to the original document, creating a unique fingerprint for verifying authenticity. This hash is a one-way function, meaning it cannot be reversed to derive the original file. During the signing process, this hash is encrypted with the signer's private key to form the signature. When received, the same hash function is applied to the document and compared to the transmitted hash. If they match, the document is confirmed genuine. The cryptographic hash is crucial for verifying document integrity and authenticity .

Class 2 digital signature certificates are typically used for electronic filing of documents such as tax returns, verifying the identity of the signer against a pre-verified database and suitable for moderate risk scenarios. In contrast, Class 3 digital signature certificates require physical presence before the Certificate Authority to establish identity, providing the highest level of security. Class 3 is used in contexts with significant security risks such as e-tendering, court filings, where a security breach could have large repercussions .

Expt 2 – Cyber Laws
Digital signature
What is a digital signature?
A digital signature is a mathematical method for confirmin
documents are also simple to regulate and keep track of because they provide the status of all 
documents, allow you to know
Digital certificates help to validate the holder of a certificate. Digital certificates contain the public key of the 
sender
and other settings where there are significant risks to data or repercussions from a security 
breach utilise class 3 digital

ReadySign 

Signeasy 

SignNow
Implementation: Digital signature using RSA algorithm
import java.math.BigInteger;
public

To send and receive secure, digitally signed, and encrypted emails

To engage in safe online transactions

To recognise t

You might also like