Skip to content

EHHS/RSA-Cryptography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

RSA-Cryptography

The following project contains C++ implementation of RSA Algorithm (Encryption - Decryption).

Explanation :

description

1.  Take two big prime numbers p, q.
    Calculate the values of : 
        n = pq
        t = (p-1)(q-1)
2.  Calculate Encryption Key :
        e -> gcd(e,z)==1;      1 < e < z
3.  Calculate Decryption Key :
        d -> ed = 1(mod z);    1 <d < z
4.  Get the Encrypted/Cypher text(C) and Decrypted/Plain text(P) :
        C = (P ^ e) % n
        P = (C ^ d) % n

سبحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ، أَشْهَدُ أَنْ لا إِلهَ إِلأَ انْتَ أَسْتَغْفِرُكَ وَأَتْوبُ إِلَيْكَ.

About

RSA Cryptography using c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages