Skip to content

opscrypto.py encrypt won't work #88

@Tintarul

Description

@Tintarul

First issue: encrypt uses /settings.xml instead of /Setting.xml
Second Issue:

C:/my/path>py opscrypto.py encrypt C:/my/path/extracted
Oneplus CryptTools V1.4 (c) B. Kerler 2019-2021
----------------------------

Encrypting prog_firehose_ddr.elf, pos=0
Traceback (most recent call last):
  File "C:/my/path/opscrypto.py", line 748, in <module>
    main()
  File "C:/my/path/opscrypto.py", line 677, in main
    item, pos = encryptitem(key, item, directory, pos, wf)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/my/path/opscrypto.py", line 504, in encryptitem
    assert item.attrib["FileOffsetInSrc"] == str(start), (item, item.attrib["FileOffsetInSrc"], str(start))
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'FileOffsetInSrc'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions