You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test case that proves the key is OK and the code does sign correct:
$ echo 1 > test.txt
$ python sign_test.py
$ gpg --homedir /tmp/gpgtest/ --verify test-out.txt
gpg: Signature made Fri 16 Feb 2024 04:01:27 PM CET
gpg: using EDDSA key 271E7DCCD583640122145B379DFECADCD8C4EEA7
gpg: Good signature from "Test User <test@example.com>" [ultimate]
Test case that demonstrates what is wrong:
$ echo''> test.txt
$ python sign_test.py
$ gpg --homedir /tmp/gpgtest/ --verify test-out.txt
gpg: Signature made Fri 16 Feb 2024 04:03:51 PM CET
gpg: using EDDSA key 271E7DCCD583640122145B379DFECADCD8C4EEA7
gpg: BAD signature from "Test User <test@example.com>" [ultimate]
The text was updated successfully, but these errors were encountered:
Hi,
After some debugging, I found that text files with spaces before a newline would never verify after being signed with PGPy.
First, generate a fresh key to test with:
I have some sample code to demonstrate the issue:
Test case that proves the key is OK and the code does sign correct:
Test case that demonstrates what is wrong:
The text was updated successfully, but these errors were encountered: