Coder Social home page Coder Social logo

Comments (4)

lonely4flow avatar lonely4flow commented on July 18, 2024

And how to use public RSA key to decode data?
when i use public key decrypt,it shows message:
Bad state: Can't decrypt without a private key, null given.

from encrypt.

leocavalcante avatar leocavalcante commented on July 18, 2024

Sorry, there is no support for PKCS5 on PointyCastle, so I can not wrap it in Encrypt.

Public keys on asymmetric cryptography, like RSA, are intended to be used only for encryption, that is why it can be public, because it won't be decrypting nothing, only encrypting.

from encrypt.

lonely4flow avatar lonely4flow commented on July 18, 2024

that‘s ok,I have use flutter plugin package solve this problem.
using public key to decryp data maybe not good,but it is decided by our architect,I can do nothing but follow😁

from encrypt.

nateshmbhat avatar nateshmbhat commented on July 18, 2024

Pkcs7 should work for a server with PKCS5 padding.

I just tested it for my server which uses PKCS5 while using Pkcs7 padding at encryption.

Pointy castle guys say they both should work the same.

from encrypt.

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.