Git Product home page Git Product logo

Comments (2)

snej avatar snej commented on August 26, 2024 1

I was surprised when I saw we couldn’t derive RSA keys.

CryptoKit seems to be following the approach of other modern crypto libraries like NaCl and libSodium: giving you useful and relatively-safe operations without exposing all the knobs and switches of the underlying crypto primitives. That's a good thing because it's not hard to accidentally weaken or destroy security by using the wrong settings. They also don't care so much about interoperability with every other crypto API; they're more of a closed ecosystem that assumes both ends of the connection use the same library, or at least compatible libraries.

Part of this is that they're picky about what algorithms to support. RSA is very widely used, but it's also very old. It requires much larger keys than elliptic curves (like, 2048 bits vs 256 bits), it runs slower, and it's much more likely to be broken by near-future advances like quantum computers. Other than compatibility, there's no reason to choose it over a modern ECC algorithm like Curve25519.

from andyibanez-com.

mbiswabaran avatar mbiswabaran commented on August 26, 2024

Hi Andy,

Thanks for sharing.

  1. For AES-GCM How to generate nonce & tag in Swift so that using same key we can decrypt in any cross platform (.net) as well.
  2. Is it possible to encrypt plain text using AES-GCM only by key?

Thanks
BM

from andyibanez-com.

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.