Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
cbf3fcf2
Commit
cbf3fcf2
authored
Oct 06, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
read oox protected files (encrypted with special password)
parent
c04f985a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
OfficeCryptReader/source/ECMACryptReader.cpp
OfficeCryptReader/source/ECMACryptReader.cpp
+10
-1
X2tConverter/src/main.cpp
X2tConverter/src/main.cpp
+1
-1
No files found.
OfficeCryptReader/source/ECMACryptReader.cpp
View file @
cbf3fcf2
...
...
@@ -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
)
...
...
X2tConverter/src/main.cpp
View file @
cbf3fcf2
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment