Skip to content

Sample implementations of RSA encryption/decryption, digital signatures, and secure TCP server-client communication in Rust.

License

Notifications You must be signed in to change notification settings

hashisato/rsa-cryption-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsa-cryption-rust

Overview

This repository provides sample implementations of RSA encryption/decryption, digital signature, and secure server-client communication in Rust.
You can try encryption, signature, or TCP-based secure message exchange using command-line arguments.

Directory Structure

  • src/rsa_cryption.rs
    RSA encryption and decryption logic (library API)
  • src/rsa_signature.rs
    RSA digital signature and verification logic (library API)
  • src/rsa_server_client.rs
    TCP server-client communication using RSA encryption
  • src/main.rs
    Command-line interface for feature selection
  • src/lib.rs
    Module definitions and documentation

Usage

  1. Make sure you have Rust installed.

  2. Clone this repository and navigate to the project directory.

  3. Run the following commands:

    • To run the encryption/decryption demo:

      cargo run -- crypto
    • To run the signature/verification demo:

      cargo run -- signature
    • To run the server-client RSA communication:

      • Start the server in one terminal:
        cargo run -- server
      • Start the client in another terminal:
        cargo run -- client

Features

  • Learn the basics of RSA cryptography in Rust
  • Practice modular Rust programming
  • Interactive console-based demos for encryption, digital signatures, and secure TCP communication

References

License

This repository is licensed under the MIT License.

About

Sample implementations of RSA encryption/decryption, digital signatures, and secure TCP server-client communication in Rust.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages