Hey
I tried to decrypt the nvs partition and unfortunately it doesnt work.
The command is:
python nvs_partition_gen.py read_nvs.bin nvs_key.bin neu.bin
The error message is this:
Traceback (most recent call last):
File "nvs_partition_gen.py", line 1037, in <module>
main()
File "nvs_partition_gen.py", line 1033, in main
args.func(args)
File "nvs_partition_gen.py", line 800, in decrypt
empty_data_entry = bytearray('\xff') * 32
TypeError: string argument without an encoding
Is there a fault on my side?
Thank you
NVS decryption doesnt work [IDF-1922]
- ESP_Roland
- Posts: 240
- Joined: Tue Oct 09, 2018 10:28 am
Re: NVS decryption doesnt work [IDF-1922]
Hi Alex.
This seems to be an incompatibility issue. We will look into this.
This seems to be an incompatibility issue. We will look into this.
- ESP_Roland
- Posts: 240
- Joined: Tue Oct 09, 2018 10:28 am
Re: NVS decryption doesnt work [IDF-1922]
In the meantime, the workaround is to use temporarily Python 2 or edit "nvs_partition_gen.py", line 800 by adding a "b":
Code: Select all
empty_data_entry = bytearray(b'\xff') * 32
- ESP_Roland
- Posts: 240
- Joined: Tue Oct 09, 2018 10:28 am
Re: NVS decryption doesnt work [IDF-1922]
For future reference, commit cb0bdb8bba774c0d5a670f73a23ca882dfddd2b6 will solve this issue and will be backported to all release branches.
Re: NVS decryption doesnt work [IDF-1922]
Hi AlexESP32,
The fix on master is available at https://github.com/espressif/esp-idf/co ... 45f32d65fd. Thanks.
Alvin
The fix on master is available at https://github.com/espressif/esp-idf/co ... 45f32d65fd. Thanks.
Alvin
Who is online
Users browsing this forum: SvanteKaiser and 129 guests