Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakubvojvoda/rsa-cryptography

Simple RSA implementation using GMP
https://github.com/jakubvojvoda/rsa-cryptography

cpp cryptography decryption encryption gmp rsa

Last synced: 11 days ago
JSON representation

Simple RSA implementation using GMP

Awesome Lists containing this project

README

        

# RSA implementation using GMP
Simple RSA key generation, text encryption and ciphertext decryption.

## usage


key generation:

input: ./rsa -g B
output: P Q N E D


text encryption:

input: ./rsa -e E N M
output: C


ciphertext decryption:

input: ./rsa -d D N C
output: M

B ... size of public modulus in bits

P ... randomly generated prime number

Q ... randomly generated prime number

N ... public modulus

E ... public exponent

D ... private exponent

M ... plaintext message (number, not text)

C ... ciphertext message (number, not text)