https://github.com/osiris-unnefer/rsa_utils
RSA private key with N & P and Q
https://github.com/osiris-unnefer/rsa_utils
attack cryptography ctf decryption factorisation rsa rsa-algorithm rsa-cryptography rsa-decryption
Last synced: 3 months ago
JSON representation
RSA private key with N & P and Q
- Host: GitHub
- URL: https://github.com/osiris-unnefer/rsa_utils
- Owner: Osiris-Unnefer
- Created: 2024-08-27T14:35:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-27T14:50:14.000Z (10 months ago)
- Last Synced: 2025-02-04T17:51:01.454Z (5 months ago)
- Topics: attack, cryptography, ctf, decryption, factorisation, rsa, rsa-algorithm, rsa-cryptography, rsa-decryption
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Values :
Public Key Exponent (65537 Generally) = E
PUBLIC key Value = N
PRIVATE key Value = D
FACTOR 1 (prime1) = P
FACTOR 2 (prime2) = Q
(Fonction phi de Euler) INTERMEDIATE value PHI = φ
Ciphertext = C
Calculs :
p and q with N (when N is not that big for factoring attack) = https://factordb.com/
N = p*q
φ(n) = (p - 1) × (q - 1)
d × e ≡ 1 mod φ(n)
M = C^d modulo n
C = M^e modulo nI have many other tools that I would make presentable for the additions after, such as decryptors with or without padding, a private key setting and others