Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

legastero/js-sasl-scram-sha-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SASL : SCRAM-SHA-1

Build Status Dependency Status devDependency Status

Browser Support

This module is a JavaScript implementation of the SCRAM-SHA-1 SASL mechanism, which plugs into the SASL framework.

Installing

$ npm install sasl-scram-sha-1

Usage

Register the SCRAM-SHA-1 mechanism.

factory.use(require('sasl-scram-sha-1'));

Send an authentication response with necessary credentials.

var mech = factory.create(['SCRAM-SHA-1']);
var initial = mech.response({username: 'chris', password: 'secret'});

var secondResp = mech.challenge('r="XCV234BAL90",s="XMXC234DFS",i=4096')
                     .response({username: 'chris', password: 'secret'});

TODO

Currently missing features:

  • Mutual authentication of the server based on the success message.

Credits

License

The MIT License

Copyright (c) 2013 Lance Stout <http://github.com/legasteros/> Copyright (c) 2012 Jared Hanson <http://jaredhanson.net/>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published