<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – 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>
    <description>Recent content in Encrypt and Decrypt Excel files with Golang via C&#43;&#43; on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/go-cpp/encrypt-and-decrypt-excel-files/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Gocpp: Encrypt And Decrypt ODS files with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/encrypt-and-decrypt-ods-files/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/encrypt-and-decrypt-ods-files/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

OpenOffice.org is a full-featured office suite that supports password‑protecting and encrypting files. However, an encrypted ODS file 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.&lt;br&gt;
Aspose.Cells allows you to encrypt and decrypt ODS files. Decrypted ODS files can be opened in both Excel and OpenOffice.
&lt;/div&gt;

&lt;h2 id=&#34;encrypt-with-openoffice-calc&#34;&gt;&lt;strong&gt;Encrypt with OpenOffice Calc&lt;/strong&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;Save As&lt;/strong&gt; and click the &lt;strong&gt;Save With Password&lt;/strong&gt; box.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;Save&lt;/strong&gt; button.&lt;/li&gt;
&lt;li&gt;Type your desired password into both the &lt;strong&gt;Enter Password to Open&lt;/strong&gt; and &lt;strong&gt;Confirm Password&lt;/strong&gt; fields in the Set Password window that opens.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;OK&lt;/strong&gt; button to save the file.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;encrypt-ods-file-with-asposecells-for-go-via-c&#34;&gt;&lt;strong&gt;Encrypt ODS file with Aspose.Cells for Go via C++&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;For encrypting an ODS file, load the file and set the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/workbooksettings/getpassword/&#34;&gt;&lt;strong&gt;WorkbookSettings.GetPassword()&lt;/strong&gt;&lt;/a&gt; value to the actual password before saving it. The resulting encrypted ODS file can be opened only in OpenOffice.&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-EncryptAndDecryptOdsFiles.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;decrypt-ods-file-with-asposecells-for-go-via-c&#34;&gt;&lt;strong&gt;Decrypt ODS file with Aspose.Cells for Go via C++&lt;/strong&gt;&lt;/h2&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/go-cpp/loadoptions/getpassword/&#34;&gt;&lt;strong&gt;LoadOptions.GetPassword()&lt;/strong&gt;&lt;/a&gt; property. Once the file is loaded, set the password to null.&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-EncryptAndDecryptOdsFiles-1.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: Verify Password of Encrypted Files with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/verify-password-of-encrypted-excel-and-ods-files/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/verify-password-of-encrypted-excel-and-ods-files/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

If Excel (xlsx, xlsb, xls, xlsm) and OpenOffice (ODS) files are locked with a password, Aspose supports simple password verification without parsing specific data in the files.
&lt;/div&gt;

&lt;h2 id=&#34;verify-the-password-of-an-encrypted-file&#34;&gt;&lt;strong&gt;Verify the password of an encrypted file&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To verify the password of the encrypted file, Aspose.Cells for Go via C++ provides the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fileformatutil/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.&lt;br&gt;
The following code snippet demonstrates the use of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/fileformatutil/fileformatutil_verifypassword/&#34;&gt;&lt;strong&gt;VerifyPassword&lt;/strong&gt;&lt;/a&gt; method to verify whether the provided password is valid.&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-VerifyPasswordOfEncryptedExcelAndOdsFiles.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: Specify Author while Write Protecting Workbook with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/specify-author-while-write-protecting-workbook/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/specify-author-while-write-protecting-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 specify the author name while write-protecting your workbook using the Aspose.Cells API. Use the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/writeprotection/getauthor/&#34;&gt;&lt;strong&gt;Workbook.GetAuthor()&lt;/strong&gt;&lt;/a&gt; property for this purpose.&lt;/p&gt;
&lt;h2 id=&#34;specify-author-while-write-protecting-workbook&#34;&gt;&lt;strong&gt;Specify Author while Write Protecting Workbook&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code demonstrates the usage of the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/writeprotection/getauthor/&#34;&gt;&lt;strong&gt;Workbook.GetAuthor()&lt;/strong&gt;&lt;/a&gt; property. The code creates an empty workbook, write-protects it with a password, specifies the author name, and saves it as an &lt;a href=&#34;67338582.xlsx&#34;&gt;output Excel file&lt;/a&gt;. The screenshot below illustrates the effect of the sample code on the output Excel file for your reference.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;specify-author-while-write-protecting-workbook_1.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-SpecifyAuthorWhileWriteProtectingWorkbook.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: Setting Strong Encryption Type with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/setting-strong-encryption-type/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/setting-strong-encryption-type/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Microsoft Excel (97‑2007/2010) enables you to encrypt and password‑protect spreadsheets. It uses algorithms provided by a Crypto Service Provider. A Crypto Service Provider (or CSP) is a set of cryptographic algorithms with different properties. The default CSP is &lt;strong&gt;Office 97/2000 Compatible&lt;/strong&gt;. This is a CSP with some publicly known security issues. Spreadsheets that are secured with the &lt;strong&gt;weak encryption (XOR)&lt;/strong&gt; or with the &lt;strong&gt;Office 97/2000 Compatible&lt;/strong&gt; encryption type can be cracked easily.&lt;/p&gt;
&lt;p&gt;To overcome this problem, use one of the strong encryption types provided by Microsoft Excel. You can change the encryption type to the strongest available CSP. For strong encryption, a minimum key length of 128 bits is required, for example, &lt;strong&gt;Microsoft Strong Cryptographic Provider&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;You can also encrypt and password‑protect Excel files using a strong encryption type with the Aspose.Cells API.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;applying-encryption-with-microsoft-excel&#34;&gt;&lt;strong&gt;Applying Encryption with Microsoft Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;To implement file encryption in Microsoft Excel (for example, 2007):&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;.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Security&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Enter a value for the &lt;strong&gt;Password to open&lt;/strong&gt; field.&lt;/li&gt;
&lt;li&gt;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;applying-encryption-with-asposecells&#34;&gt;&lt;strong&gt;Applying Encryption with Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The code examples below apply strong encryption to a file and set a password.&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-SettingStrongEncryptionType.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>
    
  </channel>
</rss>
