Skip to content

Node.js implementation of PSHA1 mechanism to calculate computed keys using server and client entropy (used on WS-Trust)

Notifications You must be signed in to change notification settings

leandrob/node-psha1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psha1

P_SHA1 algorithm implemetation as defined in TLS spec for Node.js.

WS-Trust Server and Client Entropy Scenarios

This mechanism is used in WS-Trust spec when calling services that require Server and Client entropy. In these scenarios both keys must be combined to make a shared secret using the PSHA1 algorithm to obtain the computed key.

Installation

$ npm install psha1

Usage

psha1(secret, seed, [keysize])

keysize is optional with default value 256.

var psha1 = require('psha1');

var key = psha1('GS5olVevYdlK4/rP8=', 'LmF9Mjf9lYMHDx376jA=');

About

Node.js implementation of PSHA1 mechanism to calculate computed keys using server and client entropy (used on WS-Trust)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published