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

Newline in hint breaks decryption #69

Open
kkzo opened this issue Jul 13, 2024 · 0 comments
Open

Newline in hint breaks decryption #69

kkzo opened this issue Jul 13, 2024 · 0 comments

Comments

@kkzo
Copy link

kkzo commented Jul 13, 2024

Summary

Encrypted files generated with a hint that contains a new line (multiline hint) fail to decrypt with the correct password.

Reproduction steps

  1. Visit https://www.privacyprotect.dev/
  2. Set Secret type to Message and populate with example text.
  3. Set Password (red used in example)
  4. Set Password hint to a multiline note (set line one to one and two to two in this example)
  5. Generate and attempt to decrypt
  6. Open downloaded file and attempt to decrypt

Upon opening the encrypted file, the password hint is blank and message fails to decrypt with the chosen password.

Expected behavior

Upon opening the encrypted file, the password hint should be visible and the password should successfully decrypt the message.

Screenshots

Encrypt:
image

Decrypt:
image

Log:

2024-07-14T11_09_13.secret.html:189 Uncaught TypeError: Cannot read properties of undefined (reading 'passwordHint')
    at init (2024-07-14T11_09_13.secret.html:189:16)
    at onload (2024-07-14T11_09_13.secret.html:269:25)
init @ 2024-07-14T11_09_13.secret.html:189
onload @ 2024-07-14T11_09_13.secret.html:269

Device information

  • Device: MacBook Pro
  • OS: macOS 14.5 (23F79)
  • Browser: Chrome
  • Version: 126.0.6478.127 (Official Build) (arm64)
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