-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(node/crypto): add scrypt
and scryptSync
#1329
feat(node/crypto): add scrypt
and scryptSync
#1329
Conversation
…-std-node-crypto-scrypt
…-std-node-crypto-scrypt
There should be relevant copyrights included in the source. |
@bartlomieju ok one sec will add a license comment |
done, @bartlomieju |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits. Nice work! @talentlessguy
Also confirmed the test cases match with Node.js results.
@@ -0,0 +1,179 @@ | |||
import { scrypt, scryptSync } from "./scrypt.ts"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This file needs copyright header
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's address this in another PR as we already have many files missing copyright headers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok no problem
and thanks for merging!
deno_std/node/crypto is getting closer to node.js :D
Implementation borrowed from https://github.com/crypto-browserify/scrypt
deno fmt
anddeno lint