Encrypt()

ProtectionManager::Encrypt(System::String) method

Encrypts Presentation with specified password.

void Aspose::Slides::ProtectionManager::Encrypt(System::String encryptionPassword) override

Arguments

ParameterTypeDescription
encryptionPasswordSystem::StringThe password.

Remarks

The following sample code shows you how to encrypt a PowerPoint Presentation.

auto presentation = System::MakeObject<Presentation>(u"pres.pptx");
presentation->get_ProtectionManager()->Encrypt(u"123123");
presentation->Save(u"encrypted-pres.pptx", SaveFormat::Pptx);

See Also