there might be other variants out there in practice, but this works for default encrypted doc of word 2013
4f07175 implement CryptoAPI RC4+SHA1 encryption scheme for doc import
sc/source/filter/excel/xicontent.cxx | 2 +-
sw/source/filter/ww8/ww8par.cxx | 91 ++++++++++++++++++++++++++++++----
2 files changed, 81 insertions(+), 12 deletions(-)
Upstream: cgit.freedesktop.org