<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Securing code]]></title><description><![CDATA[<p dir="auto">With the latest FW I understand that it is possible to encrypt the firmware on flash and thus secure the boot.</p>
<p dir="auto">I have a few questions about how this works:<br />
Will this fix the whole firmware and make it impossible to add new files (except upgrading the whole fw signed with same key)?<br />
If it is possible to add new files to the files can these be run as normal?<br />
If it is possible to add new files is it possible to require then to be &quot;signed&quot; and/or &quot;encryptet&quot; when they are imported?</p>
]]></description><link>https://forum.pycom.io/topic/2862/securing-code</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 03:38:05 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2862.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Mar 2018 22:26:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Securing code on Sat, 17 Mar 2018 22:26:59 GMT]]></title><description><![CDATA[<p dir="auto">With the latest FW I understand that it is possible to encrypt the firmware on flash and thus secure the boot.</p>
<p dir="auto">I have a few questions about how this works:<br />
Will this fix the whole firmware and make it impossible to add new files (except upgrading the whole fw signed with same key)?<br />
If it is possible to add new files to the files can these be run as normal?<br />
If it is possible to add new files is it possible to require then to be &quot;signed&quot; and/or &quot;encryptet&quot; when they are imported?</p>
]]></description><link>https://forum.pycom.io/post/17278</link><guid isPermaLink="true">https://forum.pycom.io/post/17278</guid><dc:creator><![CDATA[Jardar]]></dc:creator><pubDate>Sat, 17 Mar 2018 22:26:59 GMT</pubDate></item><item><title><![CDATA[Reply to Securing code on Mon, 19 Mar 2018 10:54:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jardar,<br />
I've added some development documentation on the github: <code>https://github.com/pycom/pycom-micropython-sigfox</code> (the bottom of the page).<br />
We should add a section in our official docs, too.<br />
On short, the answers are:</p>
<blockquote>
<p dir="auto">Will this fix the whole firmware and make it impossible to add new files (except upgrading the whole fw signed with same key)?</p>
</blockquote>
<p dir="auto">Yes</p>
<blockquote>
<p dir="auto">If it is possible to add new files to the files can these be run as normal?</p>
</blockquote>
<p dir="auto">I don't understand.</p>
<ul>
<li>Micropython scripts are being encrypted when they are copied on device (REPL or ftp). This is transparent for user.</li>
<li>Firmware partitions, they have to be pre-encrypted on the PC, before being OTA updated.</li>
</ul>
<blockquote>
<p dir="auto">If it is possible to add new files is it possible to require then to be &quot;signed&quot; and/or &quot;encrypted&quot; when they are imported?</p>
</blockquote>
<p dir="auto">I think I answered in the previous question.</p>
]]></description><link>https://forum.pycom.io/post/17346</link><guid isPermaLink="true">https://forum.pycom.io/post/17346</guid><dc:creator><![CDATA[catalin]]></dc:creator><pubDate>Mon, 19 Mar 2018 10:54:09 GMT</pubDate></item><item><title><![CDATA[Reply to Securing code on Fri, 13 Apr 2018 17:50:12 GMT]]></title><description><![CDATA[<p dir="auto">Thanks. Took a bit of time to follow up on this.</p>
<p dir="auto">If I understand you right the whole flash is basically encrypted. And you can add new files/FW as &quot;normale&quot; as long as these files are encrypted up front.</p>
<p dir="auto">In the documentation it states something about limited number of times the FW can be updated. From what I understand this only applies if you do not specifcation the encryption up front. Or basically the limitation is on the number of times you can change the encryption key? So there is not a limitation on file/fw update but just the encryption key?</p>
]]></description><link>https://forum.pycom.io/post/18507</link><guid isPermaLink="true">https://forum.pycom.io/post/18507</guid><dc:creator><![CDATA[Jardar]]></dc:creator><pubDate>Fri, 13 Apr 2018 17:50:12 GMT</pubDate></item><item><title><![CDATA[Reply to Securing code on Mon, 16 Apr 2018 07:04:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jardar,</p>
<p dir="auto">The docs for secure boot are published/duplicated here: <a href="https://docs.pycom.io/chapter/advance/encryption.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/advance/encryption.html</a></p>
<p dir="auto">Encryption key can't be changed, nor re-generated (that's why they should be kept safe).<br />
The 3 times limitation is valid just in the following case: the firmware binaries are written not-encrypted using USB (uart), and the ESP32 encrypts all the partitions marked as encrypted (and an ESP32 efuse has to burned.</p>
<p dir="auto">In all the other cases, like OTA update, ftp transfer, the encryption/decryption is made transparently, without the encryption counter being increased.</p>
]]></description><link>https://forum.pycom.io/post/18557</link><guid isPermaLink="true">https://forum.pycom.io/post/18557</guid><dc:creator><![CDATA[catalin]]></dc:creator><pubDate>Mon, 16 Apr 2018 07:04:30 GMT</pubDate></item></channel></rss>