Skip to content

This repository contains rsa cryptosystem, for encryption and decryption of data

Notifications You must be signed in to change notification settings

aagbotemi/rsa-cryptosystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RSA-Cryptosystem

RSA (Rivest–Shamir–Adleman) is a public-key encryption algorithm that uses an asymmetric encryption algorithm to encrypt data. Asymmetric encryption uses a key pair that is mathematically linked to encrypt and decrypt data. It works through the following steps:

  • find public modulus, n = p * q
  • find euler totient function, Φ(n) = (p-1)(q-1)
  • select e, public verification exponent such that gcd(e, Φ(n)) = 1, where 1 < e < Φ(n)
  • find d, private signing key using modular inverse d*e=1(mod Φ(n))
  • Encryption, c=m^e mod n, where m is the plain text, e is the public key, n
  • Decryption, m=c^d mod n, where m is the plain text

Clone this repository:

git clone https://github.com/aagbotemi/rsa-cryptosystem

Get into the project directory

Build the project

cargo build

Usage

To test the implementation, run:

cargo test

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

This repository contains rsa cryptosystem, for encryption and decryption of data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages