wiener 공격과는 반대로 e값이 매우 작을때 사용된다 이때 e 값은 주로 3으로 설정된다
from gmpy2 import iroot, local_context
c =
with local_context() as ctx:
ctx.precision = 3000
m = iroot(c,3)[0]
print(bytes.fromhex('%x' % int(m)))
'Cryptography' 카테고리의 다른 글
[python] .pem 파일에서 e,n 얻기 (0) | 2024.03.27 |
---|---|
[Cryptohack] Diffie-Hellman Starter 1 write up (0) | 2024.03.04 |
BraekerCTF Write up - Thus spoke machine (0) | 2024.02.29 |
RSA 역원 (0) | 2024.02.17 |
RSA Wiener attack code (0) | 2024.02.17 |
wiener 공격과는 반대로 e값이 매우 작을때 사용된다 이때 e 값은 주로 3으로 설정된다
from gmpy2 import iroot, local_context
c =
with local_context() as ctx:
ctx.precision = 3000
m = iroot(c,3)[0]
print(bytes.fromhex('%x' % int(m)))
'Cryptography' 카테고리의 다른 글
[python] .pem 파일에서 e,n 얻기 (0) | 2024.03.27 |
---|---|
[Cryptohack] Diffie-Hellman Starter 1 write up (0) | 2024.03.04 |
BraekerCTF Write up - Thus spoke machine (0) | 2024.02.29 |
RSA 역원 (0) | 2024.02.17 |
RSA Wiener attack code (0) | 2024.02.17 |