Original (slow) implementation of crypt relied on change of key. With transition to C based version this behavior were lost. It led to garbage instead of valid names when using pkg.py with -l flag to list files in package.
Here is small solution to it: store key converted to string in separate variable, perform manipulations on C side using it and copy resulting contents back to original list.
Also moved pkgcrypt callback registration next to import to have all in one place.
Original (slow) implementation of
crypt
relied on change ofkey
. With transition to C based version this behavior were lost. It led to garbage instead of valid names when using pkg.py with -l flag to list files in package.Here is small solution to it: store key converted to string in separate variable, perform manipulations on C side using it and copy resulting contents back to original list.
Also moved pkgcrypt callback registration next to import to have all in one place.