<commit_before># WsseHeader
Generate WSSE Header with [CryptoJs](https://code.google.com/p/crypto-js/) library.


## Installation

Via [Bower](http://bower.io/search/?q=cryptojs-wsse-header):

```
bower install cryptojs-wsse-header --save
```

And in your html file:

``` html
<script type="text/javascript" src="bower_components/cryptojslib/rollups/sha1.js"></script>
<script type="text/javascript" src="bower_components/cryptojslib/components/enc-base64.js"></script>

<script type="text/javascript" src="bower_components/cryptojs-wsse-header/WsseHeader.js"></script>
```


## Usage

``` js
var header = new WsseHeader();

wsseHeader.buildWsseHeader("cyrille", "BwWNPWAuOcuzI+WeMPQL4PVnqe76irLVBEQDSD25U57gscun/5k+mKo0a+9NA6nanK1utxQELgDA2XomHm0bOg==", "<PASSWORD>")
// UsernameToken Username="cyrille", PasswordDigest="<PASSWORD>=", Nonce="NGht<PASSWORD>", Created="2015-09-29T07:43:54.007Z"
```<commit_msg>Fix Typo<commit_after># WsseHeader
Generate WSSE Header with [CryptoJs](https://code.google.com/p/crypto-js/) library.


## Installation

Via [Bower](http://bower.io/search/?q=cryptojs-wsse-header):

```
bower install cryptojs-wsse-header --save
```

And in your html file:

``` html
<script type="text/javascript" src="bower_components/cryptojslib/rollups/sha1.js"></script>
<script type="text/javascript" src="bower_components/cryptojslib/components/enc-base64.js"></script>

<script type="text/javascript" src="bower_components/cryptojs-wsse-header/WsseHeader.js"></script>
```


## Usage

``` js
var wsseHeader = new WsseHeader();

wsseHeader.buildWsseHeader("cyrille", "BwWNPWAuOcuzI+WeMPQL4PVnqe76irLVBEQDSD25U57gscun/5k+mKo0a+9NA6nanK1utxQELgDA2XomHm0bOg==", "f5hdgfd6jjkfd7oj4f6jbfl2dj")
// UsernameToken Username="cyrille", PasswordDigest="<PASSWORD>=", Nonce="NGhtaG10em5peWtmYnQ5", Created="2015-09-29T07:43:54.007Z"
```
{'fraction_non_alphanumeric': 0.17164584464964694, 'fraction_numerical': 0.042368278109722976, 'mean_word_length': 7.223214285714286, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '5461860', 'n_tokens_mistral': 800, 'n_tokens_neox': 733, 'n_words': 89}