Skip to content

create-hash/md5 #3

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

Closed
fanatid opened this issue Mar 28, 2016 · 5 comments
Closed

create-hash/md5 #3

fanatid opened this issue Mar 28, 2016 · 5 comments

Comments

@fanatid
Copy link
Contributor

fanatid commented Mar 28, 2016

var md5 = require('create-hash/md5')

should be

var createHash = require('create-hash')
function md5 (buf) { return createHash('md5').update(buf).digest() }

isn't it?

because

  • nobody guarantee that file md5 will always exists
  • you require js version instead openssl in node

ping @calvinmetcalf

@calvinmetcalf
Copy link
Contributor

this intentionally grabs just the md5 stuff to avoid pulling in all of the sha and ripemd code when all that is needed is md5. Also since in context createCipher only ever does a single round we don't really need to worry about teh speed.

@fanatid
Copy link
Contributor Author

fanatid commented Mar 28, 2016

I understand that is pulled only md5, but it's not right since this is not documented in create-hash?

@calvinmetcalf
Copy link
Contributor

then lets document it in create-hash

On Mon, Mar 28, 2016 at 3:00 PM Kirill Fomichev [email protected]
wrote:

I understand that is pulled only md5, but it's not right since this is
not documented in create-hash?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#3 (comment)

@fanatid
Copy link
Contributor Author

fanatid commented Mar 28, 2016

I prefer change require whole create-hash or extract md5 from create-hash

@dcousens
Copy link
Member

Closing in favour of #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants