<divclass="blog_wide_image"><ahref="/file/811140886/164e/NRgod4GLJ74.739306/3d3e38ddcf093e95f9"target="_blank"><imgsrc="/file/811140290/150b/IpxYa5K2_3E.127469/11d888bbf92b4b42d8"title="Encrypted CDNs for Speed and Security"/></a>
</div>
<p>We at Telegram love to build sophisticated technologies that combine speed with security. Starting with Telegram <strong>4.2</strong>, we support <ahref="https://en.wikipedia.org/wiki/Content_delivery_network">CDN caching</a>. CDNs are third-party caching nodes that we’ll use to cache publicly available videos and photos posted in massive channels (say, with <strong>100,000+</strong> subscribers) for users in remote locations where Telegram is popular.</p>
<p>This will increase download speeds for tens of millions of users as CDN caching allows data to travel shorter distances and helps avoid bottlenecks that exist between regions. </p>
<p>While these caching nodes are only used to temporarily store <strong>public</strong> media (imagine Telegram versions of superpopular YouTube hits), all data that goes through them is <strong>encrypted</strong> with a key unknown to the caching nodes. In other words, we treat these CDN caching nodes just like we treat your internet provider – they only ever get encrypted junk they can't decipher.</p>
<h4><aclass="anchor"name="heres-how-it-works"href="#heres-how-it-works"><iclass="anchor-icon"></i></a>Here’s how it works</h4>
<p>If you're interested in the technical details, feel free to check out <ahref="https://core.telegram.org/cdn">this page</a> that describes the relevant encryption and security checks. And as always – the updated source code for the Telegram apps is open and available for your scrutiny. Security experts are welcome to verify the implementation of CDNs based on the <ahref="/apps#source-code">open source code</a> we make available for all of our apps.</p>
<p>Thanks to this technology, the download speed for public photos and videos in places like South America, Turkey, Indonesia, India, Iran or Iraq will significantly increase without the slightest compromise in security. </p>
<h4><aclass="anchor"name="to-sum-up"href="#to-sum-up"><iclass="anchor-icon"></i></a>To sum up</h4>
<ul>
<li>Download speeds for popular public media are set to increase several times for millions of Telegram users.</li>
<li>CDN caching nodes are not Telegram servers and not part of the Telegram cloud.</li>
<li>CDNs are used only for caching popular public media from massive channels. Private data never goes there.</li>
<li>CDNs only get encrypted data and they never have the keys: even if they are accessed by hackers or third parties, the attacker won’t be able to decipher the files.</li>
<li>Data downloaded from CDN caching nodes is always verified by the receiving Telegram app by way of hash: attackers won’t be able to replace any files with their own versions.</li>
<li>Detailed technical info about CDNs can be found <ahref="https://core.telegram.org/cdn">here</a>, the updated source code of Telegram apps ready for CDN support can be found <ahref="/apps#source-code">here</a>.</li>
<li>Telegram 4.2 also includes <ahref="https://telegram.org/blog/now-you-see-me">a bucketful of other goodies</a> for you to enjoy.</li>
<ahref="https://t.me/share/url?url=https%3A%2F%2Ftelegram.org%2Fblog%2Fencrypted-cdns&text=Higher%20download%20speed%20for%20popular%20public%20media%20from%20massive%20channels%20with%20distributed%20encrypted%20CDNs%20"class="tl_telegram_share_btn"id="tl_telegram_share_btn"data-text="Higher download speed for popular public media from massive channels with distributed encrypted CDNs "data-url="https://telegram.org/blog/encrypted-cdns"><iclass="tl_telegram_share_icon"></i><spanclass="tl_telegram_share_label"target="_blank">Forward</span></a>
<ahref="https://twitter.com/share"class="tl_twitter_share_btn"id="tl_twitter_share_btn"data-text="Higher download speed for popular public media from massive channels with distributed encrypted CDNs "data-url="https://telegram.org/blog/encrypted-cdns"data-via="Telegram">Tweet <spanclass="tl_twitter_share_cnt"></span></a>
<h4class="dev_blog_card_title">Super Channels, Star Reactions and Subscriptions</h4>
<divclass="dev_blog_card_lead">Today is Telegram's 11th anniversary. Meet Star Reactions and Star Subscriptions that let users support content creators, paid media for…</div>
<h4class="dev_blog_card_title">Telegram Browser, Mini App Store, Gifting Stars and More</h4>
<divclass="dev_blog_card_lead">Today's update brings a new in-app browser that supports multiple tabs and makes Web3 available to almost a billion users, a Mini App Store…</div>
<h4class="dev_blog_card_title">Mini App Bar, Paid Media, Story Search & More</h4>
<divclass="dev_blog_card_lead">Our June update adds a way to minimize mini apps into a compact bar, helps content creators monetize their channels with paid photos and…</div>
<h4class="dev_blog_card_title">Telegram Stars: Pay for Digital Goods and More</h4>
<divclass="dev_blog_card_lead">Over 400 million users interact with bots and mini apps on Telegram every month – to buy products, access services, play games, and much…</div>