<commit_before># wsse-header
wsse is a simple and easy way to generate WSSE authentication header in JavaScript (e.g Symfony2 applications)
# Installation
```sh
npm install wsse-header
```
# Usage
```js
var wsse = require('wsse-header');
/**
 * Default options
 * passwordEncodingIterations: 5000,
 * passwordEncodingAsBase64: true,
 * passwordEncodingAsBase64: true,
 * secondsToSubtract: 0,
 * useSaltOnDigest: false
 */
wsse.setup();
var salt = 'nuc42b7tt28kogkcsw08cswwkco0c0s';
var encodePassword = wsse.encodePassword('<PASSWORD>', salt);
// e.g k8fq4zJQTJgV9ne64pmXnKRPC+JnWKWB3W/WCrcGZjwUWg8jS4Wlgq0ibp9xuXsiBhHb9q4xvTAm0dNAL0sDeA==
console.log(encodePassword);
var credentials = {
  username: 'oumarpoulo',
  passwordEncoded: encodePassword
};
var headerToken = wsse.buildWsse(credentials);
// e.g 'UsernameToken Username="oumarpoulo", PasswordDigest="2mQO9bW09K0gA7qpDPHNmcNSCdA=", Nonce="ZnMxcTAyMXFoczVkYm82cg==", Created="2015-09-24T13:30:19+02:00"'
console.log(headerToken);
var httpHeader = wsse.buildHttpHeader(credentials);
/**
 * e.g
 * { Authorization: 'WSSE profile="UsernameToken"',
  'X-WSSE': 'UsernameToken Username="oumarpoulo", PasswordDigest="<PASSWORD>=", Nonce="a3ppZWdsMnBkMHBzYzNkaQ==", Created="2015-09-24T13:34:28+02:00"' }
 */
console.log(httpHeader);
```
_version 1.0.1_
_licence MIT_

**Author:** <NAME> (<<EMAIL>>)
<commit_msg>Build 1.0.1 support amd globals node<commit_after># wsse-header
wsse is a simple and easy way to generate WSSE authentication header in JavaScript (e.g Symfony2 applications)
# Installation
```sh
npm install wsse-header
```
# Usage
```js
var wsse = require('wsse-header');
/**
 * Default options
 * passwordEncodingIterations: 5000,
 * passwordEncodingAsBase64: true,
 * passwordEncodingAsBase64: true,
 * secondsToSubtract: 0,
 * useSaltOnDigest: false
 */
wsse.setup();
var salt = 'nuc42b7tt28kogkcsw08cswwkco0c0s';
var encodePassword = wsse.encodePassword('<PASSWORD>', salt);
// e.g k8fq4zJQTJgV9ne64pmXnKRPC+JnWKWB3W/WCrcGZjwUWg8jS4Wlgq0ibp9xuXsiBhHb9q4xvTAm0dNAL0sDeA==
console.log(encodePassword);
var credentials = {
  username: 'oumarpoulo',
  passwordEncoded: encodePassword
};
var headerToken = wsse.buildWsseHeader(credentials);
// e.g 'UsernameToken Username="oumarpoulo", PasswordDigest="2m<PASSWORD>b<PASSWORD>DPHNmcNSCdA=", Nonce="ZnMxcTAyMXFoczVkYm82cg==", Created="2015-09-24T13:30:19+02:00"'
console.log(headerToken);
var httpHeader = wsse.buildHttpHeader(credentials);
/**
 * e.g
 * { Authorization: 'WSSE profile="UsernameToken"',
  'X-WSSE': 'UsernameToken Username="oumarpoulo", PasswordDigest="<PASSWORD>qtyysYYc=", Nonce="a3ppZWdsMnBkMHBzYzNkaQ==", Created="2015-09-24T13:34:28+02:00"' }
 */
console.log(httpHeader);
```
_version 1.0.1_
_licence MIT_

**Author:** <NAME> (<<EMAIL>>)

{'fraction_non_alphanumeric': 0.14574314574314573, 'fraction_numerical': 0.05772005772005772, 'mean_word_length': 7.252976190476191, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5115414', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1092, 'n_words': 183}