How can I encrypt with a RSA private key in python?

后端 未结 3 1905
耶瑟儿~
耶瑟儿~ 2021-01-01 01:09

Is it possible to encrypt a message with a private key in python using pycryptodome or any other library? I know that you are not supposed to encrypt with the private key an

3条回答
  •  温柔的废话
    2021-01-01 01:53

    What you are describing is called message signing and it uses private/public keys to verify that the message did come from the claimed sender and that it has not been tampered with en route. You don't have to "invent" these methods ...

    https://medium.com/@securegns/implementing-asymmetric-encryption-to-secure-your-project-35368049cb5f

提交回复
热议问题