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

crypto: Correctly convert passphrases from Python to C #954

Conversation

vojtechtrefny
Copy link
Member

We can't use ord to convert the Python string to the byte array expected, with ord we'd support only ASCII passphrases and we want to support all unicode characters.

We can't use ord to convert the Python string to the byte array
expected, with ord we'd support only ASCII passphrases and we want
to support all unicode characters.

Resolves: rhbz#2234928
Copy link
Member

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense to default to UTF-8. Gtk2+ is UTF-8 only and hope that everything modern Web-like too.

I know these are Python bindings but would be perhaps nice to document this, if there's a chance.

Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK (with my critical fix, of course!)

tests/crypto_test.py Show resolved Hide resolved
@vojtechtrefny vojtechtrefny merged commit c1b3f9c into storaged-project:master Aug 31, 2023
34 checks passed
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.

None yet

3 participants