تشفير وفك تشفير ملفات ODS
Contents
[
Hide
]
OpenOffice.org عبارة عن مجموعة مكتبية كاملة الميزات تدعم حماية كلمة المرور وتشفير الملفات. ومع ذلك ، لا يمكن فتح ملف ODS المشفر إلا بواسطة OpenOffice بعد توفير كلمة المرور. لا يمكن لبرنامج Excel فتح ملف ODS المشفر وقد يرفع رسالة تحذير. لا تنطبق خيارات التشفير على ملف ODS بخلاف أنواع الملفات الأخرى.
Aspose.Cells يسمح بتشفير وفك تشفير ملف ODS. يمكن فتح ملف ODS تم فك تشفيره في كل من Excel و OpenOffice ،
تشفير باستخدام OpenOffice Calc
- يختارحفظ باسم وانقر فوق ملفحفظ بكلمة مرور علبة.
- انقر علىيحفظ زر.
- اكتب كلمة المرور التي تريدها في كلا الملفينأدخل كلمة المرور للفتح وتأكيد كلمة المرور الحقول في نافذة تعيين كلمة المرور التي تفتح.
- انقر علىنعم زر لحفظ الملف.
تشفير ملف ODS باستخدام Aspose.Cells لـ .Net
لتشفير ملف ODS ، قم بتحميل الملف واضبط الامتدادإعدادات المصنف قيمة كلمة المرور الفعلية قبل حفظها. يمكن فتح ملف ODS المشفر الناتج في OpenOffice فقط.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// The path to the documents directory. | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
//Output directory | |
string outputDir = RunExamples.Get_OutputDirectory(); | |
// Open an ODS file | |
Workbook workbook = new Workbook(sourceDir + "sampleODSFile.ods"); | |
// Password protect the file | |
workbook.Settings.Password = "1234"; | |
// Save the ODS file | |
workbook.Save(outputDir + "outputEncryptedODSFile.ods"); |
فك تشفير ملف ODS باستخدام Aspose.Cells لـ .Net
لفك تشفير ملف ODS ، قم بتحميل الملف عن طريق توفير كلمة مرور في ملفLoadOptions . بمجرد تحميل الملف ، اضبط ملفإعدادات المصنف سلسلة لاغية.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// The path to the documents directory. | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
//Output directory | |
string outputDir = RunExamples.Get_OutputDirectory(); | |
// Open an encrypted ODS file | |
Aspose.Cells.LoadOptions loadOptions = new Aspose.Cells.LoadOptions(Aspose.Cells.LoadFormat.Ods); | |
// Set original password | |
loadOptions.Password = "1234"; | |
// Load the encrypted ODS file with the appropriate load options | |
Workbook workbook = new Workbook(sourceDir + "sampleEncryptedODSFile.ods", loadOptions); | |
// Set the password to null | |
workbook.Settings.Password = null; | |
// Save the decrypted ODS file | |
workbook.Save(outputDir + "outputDecryptedODSFile.ods"); |