<commit_before>## Cryptkeeper
Some simple wrapper methods to help manage some crypto and crypto-random functions.

##### Compatibility
Version >= 1.0.0 now returns Promises and is incompatible with anything using version < 1.0.0

### Install
-----------------------------------------------------

Install the package
```bash
npm install @belsrc/cryptkeeper --save
```

Then simply include the module and add it into the application.
```javascript
var cryptkeeper = require('cryptkeeper');
```

### Testing
-----------------------------------------------------

To test simply run ```npm test```.

### Methods
-----------------------------------------------------

#### #base64Encode(val:Mixed)
Base64 encodes the given value. ```val``` can be a Buffer or a string. If an object or number is provided then it will be stringified before encoding.
```javascript
keeper
  .base64Encode('Hello world')
  .then(result => {
    console.log(result);
    // SGVsbG8gd29ybGQ=
  });<commit_msg>readme fix<commit_after>## Cryptkeeper
Some simple wrapper methods to help manage some crypto and crypto-random functions.

##### Compatibility
Version >= 1.0.0 now returns Promises and is incompatible with anything using version < 1.0.0

### Install
-----------------------------------------------------

Install the package
```bash
npm install @belsrc/cryptkeeper --save
```

Then simply include the module and add it into the application.
```javascript
var cryptkeeper = require('@belsrc/cryptkeeper');
```

### Testing
-----------------------------------------------------

To test simply run ```npm test```.

### Methods
-----------------------------------------------------

#### #base64Encode(val:Mixed)
Base64 encodes the given value. ```val``` can be a Buffer or a string. If an object or number is provided then it will be stringified before encoding.
```javascript
keeper
  .base64Encode('Hello world')
  .then(result => {
    console.log(result);
    // SGVsbG8gd29ybGQ=
  });
{'fraction_non_alphanumeric': 0.2617960426179604, 'fraction_numerical': 0.015220700152207, 'mean_word_length': 2.1552, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2508426', 'n_tokens_mistral': 526, 'n_tokens_neox': 478, 'n_words': 191}