Commit cbf3fcf2 authored by ElenaSubbotina's avatar ElenaSubbotina

read oox protected files (encrypted with special password)

parent c04f985a
......@@ -465,7 +465,16 @@ bool ECMACryptReader::DecryptOfficeFile(std::wstring file_name_inp, std::wstring
decryptor.SetCryptData(cryptData);
if (!decryptor.SetPassword(password))
return false;
{
if (password.empty())
{
password = L"VelvetSweatshop";
if (!decryptor.SetPassword(password))
return false;
}
else
return false;
}
//------------------------------------------------------------------------------------------------------------
pStream = new POLE::Stream(pStorage, "EncryptedPackage");
if (pStream->size() > 0)
......
......@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
#endif
oInputParams.m_sFileFrom = new std::wstring(sArg1);
oInputParams.m_sFileTo = new std::wstring(sArg2);
oInputParams.m_sPassword = new std::wstring(L"password");
//oInputParams.m_sPassword = new std::wstring(L"password");
// get conversion direction from 3rd argument
if (argc > 3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment