<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Protect and Unprotect with Go</title>
    <link>https://docs.aspose.com/cells/go-cpp/protect-and-unprotect/</link>
    <description>Recent content in Protect and Unprotect with Go on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/go-cpp/protect-and-unprotect/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Gocpp: Encrypt and Decrypt Excel files with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/encrypt-and-decrypt-excel-files/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/encrypt-and-decrypt-excel-files/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Microsoft Excel (97–365) enables you to encrypt and password‑protect your spreadsheets. It uses algorithms provided by a cryptographic service provider (CSP), a set of cryptographic algorithms with different properties. The default CSP is “Office 97/2000 Compatible” or “Weak Encryption (XOR)”. It’s important to choose the proper encryption key length. Some CSPs don’t support more than 40 or 56 bits. That is considered weak encryption. For strong encryption, a minimum key length of 128 bits is required. Microsoft Windows contains CSPs that offer strong encryption types as well, for example the “Microsoft Strong Cryptographic Provider”. To give you an idea, 128‑bit encryption is what banks use to secure connections with their online banking systems.&lt;/p&gt;
&lt;p&gt;Aspose.Cells allows you to encrypt and password‑protect Microsoft Excel files with your desired encryption type.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;using-microsoft-excel&#34;&gt;&lt;strong&gt;Using Microsoft Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set file encryption settings in Microsoft Excel (here Microsoft Excel 2003):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From the &lt;strong&gt;Tools&lt;/strong&gt; menu, select &lt;strong&gt;Options&lt;/strong&gt;. A dialog will appear.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Security&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Enter a password and click &lt;strong&gt;Advanced&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Choose the encryption type and confirm the password.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;encrypting-excel-file-with-asposecells&#34;&gt;&lt;strong&gt;Encrypting Excel file with Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following example shows how to encrypt and password‑protect an Excel file using the Aspose.Cells API.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-FileProtection.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;specifying-the-password-to-modify-option&#34;&gt;&lt;strong&gt;Specifying the “Password to modify” Option&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The following example shows how to set the &lt;strong&gt;Password to modify&lt;/strong&gt; Microsoft Excel option for an existing file using the Aspose.Cells API.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-FileProtection-1.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;decrypting-excel-file-with-asposecells&#34;&gt;&lt;strong&gt;Decrypting Excel file with Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;It is very easy to open a password‑protected Excel file and decrypt it using the Aspose.Cells API, as shown in the following code:&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-FileProtection-2.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;advanced-topics&#34;&gt;&lt;strong&gt;Advanced topics&lt;/strong&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/encrypt-and-decrypt-ods-files/&#34;&gt;Encrypt and Decrypt ODS files&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/setting-strong-encryption-type/&#34;&gt;Setting Strong Encryption Type&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/specify-author-while-write-protecting-workbook/&#34;&gt;Specify Author while Write‑Protecting Workbook&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/verify-password-of-encrypted-excel-and-ods-files/&#34;&gt;Verify Password of Encrypted Files&lt;/a&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Password Protect or Unprotect the Shared Workbook with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/password-protect-or-unprotect-the-shared-workbook/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/password-protect-or-unprotect-the-shared-workbook/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;You can protect or unprotect the shared workbook with Microsoft Excel as shown in the following screenshot. Aspose.Cells also supports this feature with the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbook/protectsharedworkbook/&#34;&gt;&lt;strong&gt;Workbook::ProtectSharedWorkbook()&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbook/unprotectsharedworkbook/&#34;&gt;&lt;strong&gt;Workbook::UnprotectSharedWorkbook()&lt;/strong&gt;&lt;/a&gt; methods.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;password-protect-or-unprotect-the-shared-workbook_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;password-protect-or-unprotect-the-shared-workbook&#34;&gt;&lt;strong&gt;Password Protect or Unprotect the Shared Workbook&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code creates a workbook, protects it while enabling sharing, and saves it as the &lt;a href=&#34;55541777.xlsx&#34;&gt;output Excel file&lt;/a&gt;. The screenshot shows that when you try to unprotect it, Microsoft Excel prompts you to enter the password to unprotect it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;password-protect-or-unprotect-the-shared-workbook_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-SharedWorkbookProtection.go&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Protect and Unprotect Workbook Structure with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/protect-and-unprotect-workbook-structure/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/protect-and-unprotect-workbook-structure/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

To prevent other users from viewing hidden worksheets, adding, moving, deleting, or hiding worksheets, and renaming worksheets, you can protect the structure of your Excel workbook with a password.
&lt;/div&gt;

&lt;h2 id=&#34;protect-and-unprotect-workbook-structure-in-ms-excel&#34;&gt;&lt;strong&gt;Protect and Unprotect Workbook Structure in MS Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src=&#34;protect-and-unprotect-workbook-structure.png&#34; alt=&#34;protect and unprotect workbook structure&#34;&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Review &amp;gt; Protect Workbook&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter a password in &lt;strong&gt;the Password box&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;OK&lt;/strong&gt;, re‑enter the password to confirm it, and then select &lt;strong&gt;OK&lt;/strong&gt; again.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;protect-workbook-structure-using-asposecells-for-go-via-c&#34;&gt;&lt;strong&gt;Protect Workbook Structure Using Aspose.Cells for Go via C++&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;You only need the following simple lines of code to implement protecting the workbook structure of Excel files.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-WorkbookProtection.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;unprotect-workbook-structure-using-asposecells-for-go-via-c&#34;&gt;&lt;strong&gt;Unprotect Workbook Structure Using Aspose.Cells for Go via C++&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Unprotecting workbook structure is easy with the Aspose.Cells API.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-WorkbookProtection-1.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Note: a correct password is required.
&lt;/div&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Protect and Unprotect Worksheet with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/protect-and-unprotect-worksheets/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/protect-and-unprotect-worksheets/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

To prevent other users from accidentally or deliberately changing, moving, or deleting data in a worksheet, you can lock the cells on your Excel worksheet and then protect the sheet with a password.
&lt;/div&gt;

&lt;h2 id=&#34;protect-and-unprotect-worksheets-in-ms-excel&#34;&gt;&lt;strong&gt;Protect and Unprotect Worksheets in MS Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src=&#34;protect-and-unprotect-worksheet.png&#34; alt=&#34;protect and unprotect Worksheet&#34;&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Review &amp;gt; Protect Worksheet&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter a password in &lt;strong&gt;the Password box&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;the allow&lt;/strong&gt; options.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;OK&lt;/strong&gt;, re-enter the password to confirm it, and then select &lt;strong&gt;OK&lt;/strong&gt; again.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;protect-worksheet-using-asposecells-for-go-via-c&#34;&gt;&lt;strong&gt;Protect Worksheet Using Aspose.Cells for Go via C++&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;You only need the following simple lines of code to implement protecting the workbook structure of Excel files.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-WorksheetProtection.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;unprotect-worksheet-using-asposecells-for-go-via-c&#34;&gt;&lt;strong&gt;Unprotect Worksheet Using Aspose.Cells for Go via C++&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Unprotecting a worksheet is easy with the Aspose.Cells API. If the worksheet is password‑protected, a correct password is required.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-WorksheetProtection-1.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;advanced-topics&#34;&gt;&lt;strong&gt;Advanced topics&lt;/strong&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/advanced-protection-settings-since-excel-xp/&#34;&gt;Advanced Protection Settings since Excel XP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/detect-if-worksheet-is-password-protected/&#34;&gt;Detect if Worksheet is Password Protected&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/protecting-worksheets/&#34;&gt;Protecting Worksheets&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/unprotect-a-worksheet/&#34;&gt;Unprotect a Worksheet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/go-cpp/verify-password-used-to-protect-the-worksheet/&#34;&gt;Verify Password Used to Protect the Worksheet&lt;/a&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Encrypting Excel Files with Go</title>
      <link>https://docs.aspose.com/cells/gocpp/encrypting-excel-files/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/gocpp/encrypting-excel-files/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Microsoft Excel (97 – 365) enables you to encrypt and password‑protect your spreadsheets. It uses algorithms provided by a cryptographic service provider (CSP), a set of cryptographic algorithms with different properties. The default CSP is “Office 97/2000 Compatible” or “Weak Encryption (XOR)”. It’s important to choose the proper encryption key length. Some CSPs don’t support more than 40 or 56 bits. That’s considered weak encryption. For strong encryption, a minimum key length of 128 bits is required. Microsoft Windows contains CSPs that offer strong encryption types as well, for example the “Microsoft Strong Cryptographic Provider”. To give you an idea, 128‑bit encryption is what banks use to encrypt the connection with their Internet Banking systems.&lt;/p&gt;
&lt;p&gt;Aspose.Cells allows you to encrypt and password‑protect Microsoft Excel files with your desired encryption type.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;using-microsoft-excel&#34;&gt;&lt;strong&gt;Using Microsoft Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To set file encryption settings in Microsoft Excel (for example, Microsoft Excel 2003):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From the &lt;strong&gt;Tools&lt;/strong&gt; menu, select &lt;strong&gt;Options&lt;/strong&gt;. A dialog will appear.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Security&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Input a password and click &lt;strong&gt;Advanced&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Choose the encryption type and confirm the password.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;encryption-with-asposecells&#34;&gt;&lt;strong&gt;Encryption with Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following example shows how to encrypt and password‑protect an Excel file using the Aspose.Cells API.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-EncryptingExcelFiles01.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;specifying-password-to-modify-option&#34;&gt;&lt;strong&gt;Specifying Password to Modify Option&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The following example shows how to set the &lt;strong&gt;Password to modify&lt;/strong&gt; Microsoft Excel option for an existing file using the Aspose.Cells API.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-EncryptingExcelFiles02.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;verify-the-password-of-the-encrypted-file&#34;&gt;&lt;strong&gt;Verify the Password of the Encrypted File&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To verify the password of the encrypted file, Aspose.Cells for Go provides the &lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells/fileformatutil/verifypassword/&#34;&gt;&lt;strong&gt;VerifyPassword&lt;/strong&gt;&lt;/a&gt; method. This method accepts two parameters: the file stream and the password that needs to be verified. The following code snippet demonstrates the use of the &lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells/fileformatutil/verifypassword/&#34;&gt;&lt;strong&gt;VerifyPassword&lt;/strong&gt;&lt;/a&gt; method to verify whether the provided password is valid or not.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-EncryptingExcelFiles03.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;encryptiondecryption-of-ods-files-with-asposecells&#34;&gt;&lt;strong&gt;Encryption/Decryption of ODS Files with Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells allows you to encrypt and decrypt ODS files. Decrypted ODS files can be opened both in Excel and OpenOffice; however, encrypted ODS files can only be opened by OpenOffice after providing the password. Excel cannot open the encrypted ODS file and may raise a warning message. The encryption options are not applicable for ODS files, unlike other file types. For encrypting an ODS file, load the file and set the &lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells/workbooksettings/getpassword/&#34;&gt;&lt;strong&gt;WorkbookSettings.GetPassword()&lt;/strong&gt;&lt;/a&gt; value to the actual password before saving it. The output encrypted ODS file can be opened in OpenOffice only.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-EncryptingExcelFiles04.go&#34;&gt;&lt;/script&gt;

&lt;p&gt;For decrypting an ODS file, load the file by providing a password in the &lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells/loadoptions/getpassword/&#34;&gt;&lt;strong&gt;LoadOptions.GetPassword()&lt;/strong&gt;&lt;/a&gt;. Once the file is loaded, set the &lt;a href=&#34;https://reference.aspose.com/cells/gocpp/aspose.cells/workbooksettings/getpassword/&#34;&gt;&lt;strong&gt;WorkbookSettings.GetPassword()&lt;/strong&gt;&lt;/a&gt; string to &lt;code&gt;nullptr&lt;/code&gt;.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-EncryptingExcelFiles05.go&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Gocpp: Detect File Format of Encrypted Office Open XML - OOXML Files with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/detect-file-format-of-encrypted-office-open-xml-ooxml-files/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/detect-file-format-of-encrypted-office-open-xml-ooxml-files/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;strong&gt;Office Open XML&lt;/strong&gt; (also known as &lt;strong&gt;OOXML&lt;/strong&gt; or &lt;strong&gt;Microsoft Open XML&lt;/strong&gt; (MOX)) is an XML‑based file format developed by Microsoft for representing office documents like spreadsheets, charts, presentations, and word‑processing documents.
&lt;/div&gt;

&lt;p&gt;Aspose.Cells provides a way to detect the file format of encrypted &lt;strong&gt;Office Open XML&lt;/strong&gt; files. To identify the file type, use the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fileformatutil/fileformatutil_detectfileformat_stream/&#34;&gt;FileFormatUtil.DetectFileFormat&lt;/a&gt; method as shown below in the code example.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-DetectFileFormatOfEncryptedOfficeOpenXmlOoxmlFiles.go&#34;&gt;&lt;/script&gt;
&lt;br&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: Check Password to modify using Aspose.Cells with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/check-password-to-modify-using-aspose-cells/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/check-password-to-modify-using-aspose-cells/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Sometimes, you need to check if the given password matches the &lt;strong&gt;Password to modify&lt;/strong&gt; programmatically. Aspose.Cells provides the &lt;code&gt;WorkbookSettings.WriteProtection.ValidatePassword()&lt;/code&gt; method, which you can use to check if the given Password to modify is correct or not.
&lt;/div&gt;

&lt;h2 id=&#34;check-password-to-modify-in-microsoft-excel&#34;&gt;&lt;strong&gt;Check Password to modify in Microsoft Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;You can assign &lt;strong&gt;Password to open&lt;/strong&gt; and &lt;strong&gt;Password to modify&lt;/strong&gt; while creating your workbooks in Microsoft Excel. Please see this screenshot showing the interface Microsoft Excel provides to specify these passwords.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;check-password-to-modify-using-aspose-cells_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;/table&gt;
&lt;h2 id=&#34;check-password-to-modify-using-asposecells&#34;&gt;&lt;strong&gt;Check Password to modify using Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code loads the &lt;a href=&#34;5112232.xlsx&#34;&gt;source Excel&lt;/a&gt; file, which has a Password to open of &lt;strong&gt;1234&lt;/strong&gt; and a Password to modify of &lt;strong&gt;5678&lt;/strong&gt;. The code first checks whether &lt;strong&gt;567&lt;/strong&gt; is the correct Password to modify (returns false) and then checks whether &lt;strong&gt;5678&lt;/strong&gt; is the Password to modify (returns true).&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-CheckPasswordToModifyUsingAsposeCells.go&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;console-output&#34;&gt;&lt;strong&gt;Console Output&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Here is the console output of the above sample code after loading the &lt;a href=&#34;5112232.xlsx&#34;&gt;source Excel&lt;/a&gt; file.&lt;/p&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span class=&#34;n&#34;&gt;Is&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;567&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;correct&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Password&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;modify&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;False&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;Is&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;5678&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;correct&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Password&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;modify&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;True&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Gocpp: How to Detect a File Format and Check if the File is Encrypted with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/how-to-detect-a-file-format-and-check-if-the-file-is-encrypted/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/how-to-detect-a-file-format-and-check-if-the-file-is-encrypted/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Sometimes you need to detect a file&amp;rsquo;s format before opening it because the file extension does not guarantee that the file content is appropriate. The file might be encrypted (a password‑protected file), so it can&amp;rsquo;t be read directly, or you should not read it. Aspose.Cells provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fileformatutil/fileformatutil_detectfileformat_stream/&#34;&gt;&lt;strong&gt;FileFormatUtil::DetectFileFormat()&lt;/strong&gt;&lt;/a&gt; static method and some relevant APIs that you can use to process documents.
&lt;/div&gt;

&lt;p&gt;The following sample code illustrates how to detect a file format (using the file path) and check its extension. You can also determine whether the file is encrypted.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-HowToDetectAFileFormatAndCheckIfTheFileIsEncrypted.go&#34;&gt;&lt;/script&gt;
&lt;br&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/go?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
