![]() We define the public key as parameter extern_key which is the RSA key to import. The RSA.import_key() method will import the public key to be used to encrypt, from the certificate on disk.Ideally, the public certificate should be publicly available and the private certificate should be kept private. This message will be encrypted with the public key certificate public_key.pem as per the RSA algorithm. We define the message to be encrypted in bytes as message. ![]() Recall that a key is simply a string of text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |