Skip to content

RG-10/Discrete-Structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⭐️Discrete Structures - Cryptography with RSA Encryption⭐️

Welcome to the Discrete Structures repository for Cryptography using RSA encryption and decryption.

This repository contains code that demonstrates RSA encryption and decryption for text data. You can use this code to encrypt your text and then decrypt it.

About RSA Encryption⭐️

RSA (Rivest–Shamir–Adleman) is a widely-used public-key cryptosystem that can be used for secure data transmission. It uses asymmetric encryption, meaning it uses a pair of keys for encryption and decryption: a public key (used for encryption) and a private key (used for decryption).

The process of RSA encryption and decryption involves the following steps:

  1. Key Generation⭐️:

    • A pair of public and private keys is generated.
    • The public key is shared with others, while the private key is kept secret.
  2. Encryption⭐️:

    • The sender uses the recipient's public key to encrypt the message.
    • The encrypted message can only be decrypted using the recipient's private key.
  3. Decryption⭐️:

    • The recipient uses their private key to decrypt the message and obtain the original content.
  4. Security⭐️:

    • RSA is secure due to the difficulty of factoring large semiprime numbers, which are used in key generation.

Repository Contents⭐️

  • src/pk/com/uog: This directory contains the source code for RSA encryption and decryption.

Usage⭐️

  1. Input your English text in the provided code.
  2. The code will perform encryption on your text.
  3. The encrypted text can be sent to the recipient.
  4. The recipient uses their private key to decrypt the text and obtain the original content.

Getting Started⭐️

To get started with RSA encryption and decryption, follow these steps:

  1. Clone or download this repository.
  2. Open the code in your Java development environment.
  3. Input the English text you want to encrypt.
  4. Run the code to perform encryption and decryption.

Enjoy exploring the world of RSA encryption!

License⭐️

This project is licensed under the MIT License - see the LICENSE file for details.

Releases

No releases published

Packages

No packages published

Languages