Comments (10)
I don't know if is the same problem.
I encrypt and sign files also with keys from https://pgpkeygen.com/.
With "pgp4win" encrypt/sign and decrypt/verify ok.
Within my C# app:
When i decrypt without sign is ok.
When i go to decrypt/verify a signed file, I get error "Failed_ to verify".
I debug and see that publicKey.KeyId and publicKeyED.KeyId is not same in function "verify".
Could you advise me if make something wrong?
The library have any function make trust the public key like pgp4win??
Thank you
from pgpcore.
Yes, I've so far been stumped by the GPG issue, I need to have a look into it again when I have more time but so far I've been using the library with PGP keys so it hasn't been a high priority for me.
I'm happy to accept a PR for making it properly async so feel free to submit one whenever you get a chance.
from pgpcore.
This seems to have been due to not scanning the sub-keys of a signature for the public key ID to compare against. I've updated the code, tests and package now and it works as expected for keys I've generated using GPG. Let me know if it works for you now or if you're still experiencing issues.
from pgpcore.
What version of the package are you using? I just updated it to v1.7.0 this morning to fix this issue.
I just ran the unit tests using a key pair generated at https://pgpkeygen.com/ and they all passed so hopefully this update has fixed your issue.
from pgpcore.
I couldn't install because my app is in ".NETFramework,Version=v4.0"
I had download the file "PGP" and "EncryptionKeys" from repository.
from pgpcore.
These files were updated yesterday as part of the v1.7.0 update, are you using the latest versions?
from pgpcore.
Yes, I download today and the problem still the same.
from pgpcore.
Are you able to create a test .NET Core application to see if it works when using the NuGet package?
from pgpcore.
@mattosaurus thanks for this. I'll test and get back to you
from pgpcore.
It works, thanks!
from pgpcore.
Related Issues (20)
- issue while decrypting binary file HOT 1
- PgpCore open for Hacktoberfest? HOT 1
- Improve key handling HOT 6
- Improve key generation HOT 2
- Create missing interfaces
- Refactor PGP class HOT 2
- Error handling
- VerifyAndRead for non-clear signatures HOT 1
- Recommend AES over TripleDES HOT 1
- Size differences between files encrypted with PGPCore and files encrypted with PGP command line HOT 4
- Nuget publishing? HOT 1
- SignStreamAsync without armor results in closed outputstream HOT 1
- Does this library support Ascii Armor? If so, please provide a sample code HOT 1
- Getting error with Verify HOT 1
- SonarQube scanner java error HOT 1
- PGPCore Error: Org.BouncyCastle.Bcpg.OpenPgp.PgpSecretKeyRing found where PgpPublicKeyRing expected HOT 1
- Verified file has extra characters. HOT 10
- error in BouncyCastle.Utilities.Strings.ToUtf8ByteArray HOT 5
- hash algorithm constant mismatch with bouncy castle when sign
- Generate Key example command doesn't work as provided
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgpcore.