<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>base64 encoding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8703/base64-encoding</link><description>is there any function or library that can encode data using base64 encoding..? in nrf51422</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Mar 2020 08:01:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8703/base64-encoding" /><item><title>RE: base64 encoding</title><link>https://devzone.nordicsemi.com/thread/241511?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 08:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f1f80bf-bc0c-437c-9eb1-22140f0abcb7</guid><dc:creator>Embedded_Engineer</dc:creator><description>&lt;p&gt;Dead Link : &lt;a href="https://das-labor.org/svn/microcontroller-2/arm-crypto-lib/base64/"&gt;ARM crypto lib&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: base64 encoding</title><link>https://devzone.nordicsemi.com/thread/31902?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 12:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a062383-edfb-4e06-8110-c6bd31ae5091</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;When encoding to base64, the output size will increase by a factor of about 4/3. This is because every 3 bytes are encoded into 4 bytes, and finally padded to always be a multiple of 4 bytes. So the destination array needs to be larger. A more precise size than 4/3 is (src_length + 2 - ((src_length + 2) % 3)) / 3 * 4. You should then get that your string encodes into &amp;quot;ADUAAAAAAAAAADU=&amp;quot;, which is reversed properly back to your start array.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: base64 encoding</title><link>https://devzone.nordicsemi.com/thread/31901?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 09:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d372501-7223-4d03-904c-aec2e0d53c15</guid><dc:creator>Nomi</dc:creator><description>&lt;p&gt;HI ulrich myhre i used the .h and .c files that you have privided to encode and then decode my data. the array to be encoded is {0x00  ,0x35  ,0x00  ,0x00  ,0x00  ,0x00  ,0x00  ,0x00  ,0x00  ,0x00  ,0x00  ,0x35}; after encoding i get this string &amp;quot;ADUAAAAAAAAA&amp;quot; and to check encoding when i pass this string to my decode function the result i got was wrong. it changed the 12th byte which is 0x35 to 0x00.then is shifted my 0x35 byte to every position in array and it only works upto 9th position.after that it converts 0x35 to 0x00.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: base64 encoding</title><link>https://devzone.nordicsemi.com/thread/31900?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2015 07:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45b6821e-1e00-45ab-a5f6-9ac88248f838</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Take a look at the &lt;a href="https://das-labor.org/svn/microcontroller-2/arm-crypto-lib/base64/"&gt;ARM crypto lib&lt;/a&gt; (GPL license) or implement it directly from the RFC &lt;a href="https://tools.ietf.org/html/rfc3548"&gt;here&lt;/a&gt;. It is quite a simple procedure, more about re-grouping bits than anything else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>