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

sop-openpgpjs doesn't handle 8-bit data correctly #4

Open
teythoon opened this issue Mar 28, 2023 · 0 comments
Open

sop-openpgpjs doesn't handle 8-bit data correctly #4

teythoon opened this issue Mar 28, 2023 · 0 comments

Comments

@teythoon
Copy link

Seems it is replaced with the unicode REPLACEMENT CHARACTER suggesting a superfluous conversion to a string somewhere:

% echo -ne 'what is\xff\xff\xff\xff\xffhappening' | sqop encrypt alice-secret.pgp | sop-openpgp decrypt alice-secret.pgp | hd
00000000  77 68 61 74 20 69 73 ef  bf bd ef bf bd ef bf bd  |what is.........|
00000010  ef bf bd ef bf bd 68 61  70 70 65 6e 69 6e 67     |......happening|
0000001f
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

No branches or pull requests

1 participant