An open API service indexing awesome lists of open source software.

https://github.com/bkawk/aes-256-cbc-pbkdf2-30k

Polymer2 Web Component for encrypting and decrypting a mnemonic to the CBC encryption mode of AES
https://github.com/bkawk/aes-256-cbc-pbkdf2-30k

aes-cbc cryptography pbkdf2 polymer2

Last synced: 6 months ago
JSON representation

Polymer2 Web Component for encrypting and decrypting a mnemonic to the CBC encryption mode of AES

Awesome Lists containing this project

README

          

# \

Encrypt a mnemonic wth AES-256-CBC encryption using a given password and the PBKDF2 KDF with the given number of rounds.

To encrypt: Set the direction to 'encrypt' and pass in a password, mnemonic. And save the hash and initialisation vector.

To decrypt: Set the direction to 'decrypt' and pass in the password, hash and initialisation vector.

Every time you encrypt a new initialisation vector will be created for you, be sure to save this with the generated hash.

Toggle debug to get a console view of the values.

## Install the Polymer-CLI

First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your application locally.

## Viewing Your Application

```
$ polymer serve
```

## Building Your Application

```
$ polymer build
```

This will create a `build/` folder with `bundled/` and `unbundled/` sub-folders
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
CSS, and JS optimizers.

You can serve the built versions by giving `polymer serve` a folder to serve
from:

```
$ polymer serve build/bundled
```

## Running Tests

```
$ polymer test
```

Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.