Skip to content

[BUG] Cannot bind combined HWID #2252

@emanuele-aisent

Description

@emanuele-aisent

1.1.6. Binding obfuscated scripts to device

When trying to generate outer key binded to multiple HWIDs such as both Ethernet Address and Disk Serial Number, the generation fails.

Reproduce

Run command to bind license to HWID, both Ethernet Address and Disk Serial Number

pyarmor gen key --period 1 -b "00:16:3e:35:19:3d HXS2000CN2B"

Actual Result

INFO     Python 3.12.3
INFO     Pyarmor 9.2.0 (trial), 000000, non-profits
INFO     Platform linux.x86_64
INFO     start to generate outer runtime key "pyarmor.rkey"
ERROR    tuple.index(x): x not in tuple

Expected Result

INFO     Python 3.12.3
INFO     Pyarmor 9.2.0 (trial), 000000, non-profits
INFO     Platform linux.x86_64
INFO     start to generate outer runtime key "pyarmor.rkey"
INFO     generate outer runtime key OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions