open-index/open-npm huggingface dataset:
npm package: @kessler/ec2-util
Description: a bunch of ec2 utilities
Author: Yaniv Kessler
Latest version: 0.1.0

# @kessler/ec2-util

**a bunch of ec2 related utilities**

[![npm status](http://img.shields.io/npm/v/@kessler/ec2-util.svg?style=flat-square)](https://www.npmjs.org/package/@kessler/ec2-util) 

## example

`npm i @kessler/ec2-util`

```js
const ec2Util = require('@kessler/ec2-util')

ec2Utils.findInstancesByTags({ Name: 'test-worker' }, console.log)
ec2Utils.launchInstance({ vpcName: 'main', imageId, tags: { Name: 'test-worker' } }, console.log)
ec2Utils.findVpc('main', (err, vpc) => {
  ec2Utils.findSubnets(vpc.VpcId, console.log)
})
```

## license

[MIT](http://opensource.org/licenses/MIT) © Yaniv Kessler
npm package: @kessler/encryption
Description: personal encrypt/decrypt utils
Author: Yaniv Kessler
Latest version: 2.0.0

# @kessler/encryption

personal encryption utils

## Example

```js
const { encrypt, decrypt, createEncryptionKey, createRandomBytes } = require('@kessler/encryption')

const key = createEncryptionKey('secretpass', 'salt123')
const iv = new Buffer('9819u2nh2jksnbcjkbcsjksbcsscbskj')
const hmacKey = createRandomBytes()

const encryptedData = encrypt('kljiasojiojioqwennm,nmz,xcnm,zxcnkjlk', { key, iv, hmacKey })
const decryptedData = decrypt(encryptedData.data, { key, iv, hmacKey })
```