UNPKG

www-authenticate

Version:

Provides the functionality needed for a client to use HTTP Basic or Digest authentication. Also provides primitives for parsing WWW-Authenticate and Authentication_Info headers.

9 lines (7 loc) 173 B
var crypto= require('crypto') , md5sum = crypto.createHash('md5') ; function md5(s) { return crypto.createHash('md5').update(s).digest('hex'); } module.exports= md5;