Skip to content

Node crypto.scrypt support #10

@Cretezy

Description

@Cretezy

Currently this packages uses the scrypt package, but since Node v10.5, Node ships with it's own built-in crypto.scrypt implementation.

Is their plans to support this?

A possible integration plan would be:

  • Make the scrypt package optional
  • Use crypto.scrypt when possible, fallback to scrypt package
    • If both are not found (< v10.5 && package not install), throw an error
  • Bump major version (since this is a breaking change)
    • Add in the README to install scrypt if using Node < v10.5

Would that be a good plan? I would be willing to implement this if we have a consensus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions