-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cipher error #29
Comments
I made a patch, hopefully the owner will accept the pull requests. |
Is there a way to get this already working in docker? |
I forgot to test it in Docker ... 😱 I am running it as a service. I will check it tonight. |
Docker is fixed,
|
Get this
Which linux distro and version do you use?
[image: image.png]
Op wo 19 okt. 2022 om 07:23 schreef Xenomes ***@***.***>:
… Docker is fixed,
cd ~
git clone https://github.com/Xenomes/ewpe-smart-mqtt.git
cd ewpe-smart-mqtt
git checkout fix
npm install
docker build . -t ewpe-smart-mqtt
docker run -it \
--network="host" \
-e "MQTT_SERVER=mqtt://127.0.0.1" \
-e "MQTT_BASE_TOPIC=ewpe-smart" \
-e "NETWORK=192.168.1.255" \
-e "DEVICE_POLL_INTERVAL=5000" \
--name ewpe-smart-mqtt \
ewpe-smart-mqtt:latest
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJSNL5I3OYQSKF46H2MIT53WD6AU7ANCNFSM5WH3K3WQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Jo De Wée*
Steystraat 60
3200 Aarschot
+32 (0)479 99 01 05
***@***.***
|
Hmm,
tried in ubuntu, but still the same issue;
Is the command to run the docker ok?
[image: image.png]
Op wo 19 okt. 2022 om 07:23 schreef Xenomes ***@***.***>:
… Docker is fixed,
cd ~
git clone https://github.com/Xenomes/ewpe-smart-mqtt.git
cd ewpe-smart-mqtt
git checkout fix
npm install
docker build . -t ewpe-smart-mqtt
docker run -it \
--network="host" \
-e "MQTT_SERVER=mqtt://127.0.0.1" \
-e "MQTT_BASE_TOPIC=ewpe-smart" \
-e "NETWORK=192.168.1.255" \
-e "DEVICE_POLL_INTERVAL=5000" \
--name ewpe-smart-mqtt \
ewpe-smart-mqtt:latest
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJSNL5I3OYQSKF46H2MIT53WD6AU7ANCNFSM5WH3K3WQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Jo De Wée*
Steystraat 60
3200 Aarschot
+32 (0)479 99 01 05
***@***.***
|
Got it connected to mqtt, but fails to start;
[image: image.png]
Op wo 19 okt. 2022 om 07:23 schreef Xenomes ***@***.***>:
… Docker is fixed,
cd ~
git clone https://github.com/Xenomes/ewpe-smart-mqtt.git
cd ewpe-smart-mqtt
git checkout fix
npm install
docker build . -t ewpe-smart-mqtt
docker run -it \
--network="host" \
-e "MQTT_SERVER=mqtt://127.0.0.1" \
-e "MQTT_BASE_TOPIC=ewpe-smart" \
-e "NETWORK=192.168.1.255" \
-e "DEVICE_POLL_INTERVAL=5000" \
--name ewpe-smart-mqtt \
ewpe-smart-mqtt:latest
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJSNL5I3OYQSKF46H2MIT53WD6AU7ANCNFSM5WH3K3WQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Jo De Wée*
Steystraat 60
3200 Aarschot
+32 (0)479 99 01 05
***@***.***
|
The images are missing for your posts. I also run Ubuntu, maybe your ewpe-smart-mqtt image in docker is the old one.
|
Hi all, I also have the same issue.
2023-02-18T10:42:23.800Z [info]: Trying to connect to MQTT server mqtt://127.0.0.1 ... Error: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length npm ERR! A complete log of this run can be found in: And here are the logs: pi@raspberrypi:~/ewpe-smart-mqtt $ cat /home/pi/.npm/_logs/2023-02-18T10_42_24_650Z-debug.log @jodewee Have you been able to fix it? With the patch, i also have an error:
2023-02-18T12:34:21.262Z [info]: Trying to connect to MQTT server mqtt://127.0.0.1 ... ReferenceError: result is not defined npm ERR! A complete log of this run can be found in: ---> result is not defined if the test is true. So i've added a console.log(plaintext) just before the test to see what's the value. Seems to be wrong decryption value. Could you please help me? Many thanks :) |
I've edited encryptor.js to show variable content in the console. Is it possible the airco have a new (and/or other) encryption key? I red somewhere on the web that with android phone it could be possible to get that new/other key. I've iPhone (and no android phone available). edit: JtoKliwtrZWlpNCVOSARFZVjvdMQgUTwNgdjW+vbhOTTdG5N10M5OI3w9aCGCJffjfuyCITofrMT4JbII6+A1+2Qyk7gfwk5dZR2EayhdZgEoOSGGofp1NG95p07va4eFq+2oChWDqTDGSfh0Qvsoz/uHnpJj7cgLseHEa1Qy49usnE8T0XpY+OxrVwrWa2y2vzlARuL1vKmpT7wkMRwPTuo1zE7mhrFvdLWdzI6Z6osCeD6tdJoLaE7k6FHvghQKe+boL4= The online tools says it has wrong length (should be a 16 multiple) but when using the bridge it is able to uncrypt (with wrong key) then returning unreadable characters. edit2:
And here are the results:
|
I've seen somewhere a way to try to catch the encryption key with an android emulator. That means at this point we are not able to get that stupid key. I will try to find a way and let you know |
Hello all, Thanks a lot to the contributors of this repository. I face exactly the same issues as you do. I am not an expert, but I have Android phones. Just a silly idea, but could we try to brute force crack the key? Thanks for your help :) |
Hi @bwibwi13 I tried with an android emulator without success. About cracking the aes encyption it will take ages (2^128 possibilities); you will be dead before, even with the best super calculator. the best way should be to sniff all communication (from the hvac and the ewpe app with ewpe server when initializing the wifi module) because the wifi module get the new encryption key at this moment. I never did it and as soon i have time to do it i’ll try. (Very very busy at the moment). I’ll come back here when i do it. |
Updated the app, so it will not crash in case of decrypt failure and will just print the error to the console, I hope it will help with the issue |
i get a cipher error.
is there any way to give the encryption key in the properties
?
The text was updated successfully, but these errors were encountered: