<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to asymmetric encryption</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ed0908587/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ed0908587/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/6ed0908587/</id><updated>2022-02-21T12:59:04.283000Z</updated><subtitle>Recent posts to asymmetric encryption</subtitle><entry><title>asymmetric encryption</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ed0908587/?limit=25#be36" rel="alternate"/><published>2022-02-21T12:59:04.283000Z</published><updated>2022-02-21T12:59:04.283000Z</updated><author><name>ahmedosama</name><uri>https://forge.codesys.com/u/ahmedosama/</uri></author><id>https://forge.codesys.com1e3af206218bf95ae4d414290e17d6737e03f00f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was trying to implement the asymmetric encryption so I can use public and private keys for encryption and decryption.&lt;br/&gt;
i imported the crypto demo project to view the implementation but actually it doesn't run the asymmetric part as there is no certificate so&lt;br/&gt;
this whole section of the program is always skipped.&lt;br/&gt;
I have several questions:&lt;br/&gt;
1-how can I use the generateAsymmetrickeypair to generate two keys, one will be used as public key and the other one as private key?&lt;br/&gt;
2-do I have to use a certificate to generate the key pair or I can just generate them as strings like what happen in the symmetricencryption method?&lt;br/&gt;
3-is there a way so I can generate keys online or using python and just use them in the encrypt and decrypt methods instead on generating&lt;br/&gt;
inside the codesys?&lt;br/&gt;
4-if it is a must to generate a certificate , how can I have a certificate handler to be used inside the generateAsymmetrickeypair method?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>