지금 까지 했었던 rsa starter을 총 동원해서 이번엔 진짜 암호문을 풀어보겠다
p = 857504083339712752489993810777
q = 1029224947942998075080348647219
e = 65537
n = q*p
phi = (q-1)*(p-1)
d = pow(e,-1,phi)
c = 77578995801157823671636298847186723593814843845525223303932
flag = print(pow(c,d,n))
= 13371337
'Cryptography' 카테고리의 다른 글
[Python] Crypto 모듈 다운로드 명령어 (0) | 2024.01.02 |
---|---|
HISCON 교외대회 문제 출제 write up (0) | 2023.11.11 |
[Cryptohack] RSA starter 4 (0) | 2023.08.31 |
RSA 개념 정리 / e값이 65537인 이유 (0) | 2023.08.31 |
[Cryptohack] RSA starter 3 write up (0) | 2023.08.31 |