Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Asymmetric Encryption and Decryption #122

@joaosantos15

Description

@joaosantos15

From what I understand, js-libp2p-crypto is the JS implementation of go-libp2p-crypto and uses the WebCrypto API whenever possible.
For asymmetric encryption/decryption, go-libp2p-crypto uses RSASSA-PKCS1-v1_5, which is only supported for digital signature by the WebCrypto API.
On the other hand, the only asymetric encryption supported by WebCrypto API is RSA-OAEP.

It would be nice to have RSA encryption in js-libp2p-crypto ☀️.

What would be the way to do it? Use the WebCrypto API's RSA-OAEP or implement go-libp2p-crypto's RSASSA-PKCS1-v1_5?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions