Code Monkey home page Code Monkey logo

Comments (10)

EmperorCy avatar EmperorCy commented on May 20, 2024 1

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.

mattosaurus avatar mattosaurus commented on May 20, 2024

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.

mattosaurus avatar mattosaurus commented on May 20, 2024

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.

mattosaurus avatar mattosaurus commented on May 20, 2024

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.

EmperorCy avatar EmperorCy commented on May 20, 2024

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.

mattosaurus avatar mattosaurus commented on May 20, 2024

These files were updated yesterday as part of the v1.7.0 update, are you using the latest versions?

from pgpcore.

EmperorCy avatar EmperorCy commented on May 20, 2024

Yes, I download today and the problem still the same.

from pgpcore.

mattosaurus avatar mattosaurus commented on May 20, 2024

Are you able to create a test .NET Core application to see if it works when using the NuGet package?

from pgpcore.

ben-foster-cko avatar ben-foster-cko commented on May 20, 2024

@mattosaurus thanks for this. I'll test and get back to you

from pgpcore.

ben-foster-cko avatar ben-foster-cko commented on May 20, 2024

It works, thanks!

from pgpcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.