2025-01-06Seed Lab实验:RSAPublic-Key Encryption and Signature LabRSAPublic-KeyEncryptionandSignatureLab1.推导RSA私钥importgmpy2p=0xF7E75FDC469067FFDC4E847C51F452DFq=0xE85CED54AF57E53E092113E62F436F4Fe=0x0D88C3n=q*pphi=(p-1)*(q-1)d=gmpy2.invert(e,phi)print("publickey:("+hex