Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


Hi Vikas,

On Tuesday, 2018-07-24 09:05:09 +0530, Vikas Mahato wrote:

I wanted to know how can we generate the encryption key for using wit
include/oox/crypto/CryptTools.hxx classes?

As Tomaž said, it may depend on what you're actually up to..
Likely you do not want to use the CryptTool Encrypt/Decrypt wrappers
directly.

If it is for OOXML encryption there are two engines derived from
CryptoEngine of include/oox/crypto/CryptoEngine.hxx, AgileEngine of
include/oox/crypto/AgileEngine.hxx and the older Standard2007Engine of
include/oox/crypto/Standard2007Engine.hxx

The engines provide a generateEncryptionKey() function, which is called
by an engine's setupEncryption(const OUString& rPassword) after presets
have been initialized, for usage see for example
oox/qa/unit/CryptoTest.cxx

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A

Attachment: signature.asc
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.