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


Hi,

Please do a "Reply All" when replying so that the mail also is sent to
the libreoffice-dev mailing list.

On Tue, Jul 24, 2018 at 10:11 AM, Vikas Mahato <vikasmahato0@gmail.com> wrote:
Hi,

I am trying to implement credentials for external data source as part of my
GSoC project. I want to encrypt the credentials and store them to a file.
moggi ( my mentor) asked me to implement it using CryptTools but I am not
sure how to proceed.


Well in that case ask your mentor what you should use to create the
key. As I said key creation is key (no pun intended) and we already
have ways to securely create keys so it is a matter to decide which
one to use.

It is possible to use the same algorithm that is used in OOXML
document encryption, however you'd need to store additional encryption
info inside the file (by using oox::core::AgileEngine, look at
oox/qa/unit/CryptoTest.cxx for some examples), or maybe it would be
simpler to just use the OleStorage like the OOXML documents do to
store the encryption info and the file content or a ZipStorage. Or use
the same encryption as ODF files. Anyway ask your mentor what he has
in mind for this as this is not at all a trivial decision.

Regards, Tomaž

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.