Skip to content

Use a feature of Node v11.7.0 to extract a public key #3921

@akihikodaki

Description

@akihikodaki

Summary

Here is a good news: Node.js v11.7.0 now has a feature to extract a public key. It was introduced with the following pull request:
nodejs/node#25217

The API allowing to extract a public key is crypto.createPublicKey(key).
https://nodejs.org/api/crypto.html#crypto_crypto_createpublickey_key

It effectively replaces the functionality of src/crypto_key.cc, which I introduced in #1303 and a pull request recently merged, #3906, updated.

However, please note that the version of Node.js was released today (2019-01-18). You may carefully decide when to make such a change because it may not be widely available yet and some may prefer LTS versions.

Environment

Node.js v11.7.0


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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