You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use encrypted token for communication with the Nuki bridge, see #94. Please take notice of the following:
Encrypted tokens requires Nuki biridge firmware >= 2.14.0 (or >= 1.22.1 for the v1 bridge). Make sure to upgrade your bridge firmware before upgrading Homebridge NB;
As with hashed tokens, the clocks on the server running Homebridge and the Nuki bridge to be synchronised;
The encryption of the token is provided by sodium-plus. Unfortunately this repository contains a C++ module, that might need to be compiled on installation. I've made this an optional dependency, so Homebridge NB can be installed on systems without build tools, using npm -g i homebridge-nb --omit=optional. In this case, Homebridge NB reverts to using hashed tokens.
nb: add -E parameter to select level of encryption (none, hashedToken, or encryptedToken);
NbClient: add encryption parameter.
Create a separate library, hb-nb-tools for the modules interacting with the Nuki API and the nb tool, so nb can be installed standalone, on servers not running Homebridge.