Skip to content
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

Fix some bytes/str conversion issue #36

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hexchain
Copy link

The output of the keychain password hash has been broken because using a bytes object for %s produces repr-type output. This PR fixes that.

Also, export file names were all numbers because bytes[n] is an int and str(bytes[n]) is just the integer converted to a string. Since we expect PrintNames to always be a bytes object, we should be able to use decode and ignore errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant