Uw opmerkingen
We will add documentation for the IR.CreateEncryption method soon. Below is the "raw" information.
There are 2 types of creating an RSA encryption object:
1) With the key size.
var RSA = IR.CreateEncryption(IR.ENCRYPTION_RSA, key_size);
Parameters:
IR.ENCRYPTION_RSA - encryption type
key_size key size in bytes 32(256 bits), 64 (512 bits), 128(1024 bits), 256(2048 bits), 512(4096 bits) (number)
2) Using a public or private key.
var RSA = IR.CreateEncryption(IR.ENCRYPTION_RSA, key, is_publick);
Parameters:
IR.ENCRYPTION_RSA - encryption type
key - the key (string)
is_publick - flag whether this key is public or not (true, false)
Methods:
1) Encrypt.
RSA.Encode(data (string/array), resultType, inputType);
Parameters:
You can pass a string or an array of numeric data.
resultType - constant (return value type)
IR.RESULT_TYPE_ARRAY - get an array of numeric data (returns an array)
IR.RESULT_TYPE_BASE64_STRING - get a string in Base64 to avoid losing data, then you can use IR.Base64Encode() (returns a string)
inputType - constant (type of the first parameter)
Only valid if the first parameter is a string.
IR.INPUT_TYPE_BYTE_STRING - signal that just a string has arrived (you don't need to specify it, this parameter is used by default)
IR.INPUT_TYPE_BASE64_STRING - signal that a base64 string has arrived
2) Decrypt.
RSA.Decode(data (string/array), resultType, inputType);
Parameters:
You can pass a string or an array of numeric data.
resultType - constant (return value type)
IR.RESULT_TYPE_ARRAY - get an array of numeric data (returns an array)
IR.RESULT_TYPE_STRING - get just a string
IR.RESULT_TYPE_BASE64_STRING - get a string in Base64 to avoid losing data, then you can use IR.Base64Encode() (returns a string)
inputType - constant (type of the first parameter)
Only valid if the first parameter is a string.
IR.INPUT_TYPE_BYTE_STRING - signal that just a string has arrived (you don't need to specify it, this parameter is used by default)
IR.INPUT_TYPE_BASE64_STRING - signal that a base64 string has arrived
3) Get the public key.
RSA.GetPublickKey() (return string or undefined);
Hello.
1) using the IR.Base64Encode method, to encode the Header.
2) using the IR.Base64Encode method, to encode the Payload.
3) Form a common string Base64 (Header)+. + Base64 (Payload). Please note that the dot is required.
5) use the IR.Base64Encode Method to encode the string from step 4.
6) the Result from step 3 + . + result from step 4 = JWT. Please note that the dot is required.
Hello.
Thank you for your suggestion.If you want to store and process critical data, we recommend using full-fledged DBMS and moving data using DBMS tools. To access these DBMS, i3 pro has an ODBC driver (only for Windows server and client).
At the moment, we have no plans to add new tools for working with the built-in database.
Hello.
What do you mean? Do you want to delete 12-15 bytes from the array?
Hello.
Now you can only Disconnect() the driver and Connect() it again. Then the poll of all group addresses will start again. However, this is a bad solution if you have a lot of KNX feedbacks in the project. In one of the future releases, the "Read request" command will appear to get feedback as in the initial poll, but only one group address and without Disconnect/Connect the driver. We can let you know when a release with this type of command is ready.
Hello.
i3pro://
call works the same way as a hyperlink clicked in a web browser or email client.
Hello.
Do you connect to KNX from the Internet? Check whether there will be a delay when connecting from the local network. If the delays are from the local network, leave 1 channel and feedback in the KNX driver, then check again whether there will be delays.
Customer support service by UserEcho
Hello.
In the native driver, it is useless to force changing feedbacks, because they will come at the first survey or by event (as in KNX). If you are using a panel project, you can change the States of Items linked to feedbacks.