Picture of Sam 4951
Registered 5 years 4 days
Sam 4951 Thursday, 16 December 2021, 12:03 PM in response to Marc Schodermayr (innovaphone)
Re: Password encryption with C++ config library
Hello Marc,

I thought ConfigString::Encrypt(const char * seed, const char * password, char * out, size_t len);
would behave exactly the same as AppWebsocket::AppWebsocketEncrypt(const char * seed, const char * data, char * out, size_t outLen);
because they have exactly the same signature and because you can feed it with the encryption key.

But after your explanation and some testing it is now clear that you can't use ConfigString::Encrypt to create a password inside a WriteConfig message
(which I still find weird because the ConfigString class is part of the Config API).

AppWebsocketEncrypt also takes the session key of it's websocket connection into account (next to the seed).

My issue is solved: the App can now send a correct WriteConfig message to the Calendar App.

Thanks for your explanation.

Best regards,
Sam
← You can define your color theme preference here