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
- Host: GitHub
- URL: https://github.com/bkawk/aes-256-cbc-pbkdf2-30k
- Owner: bkawk
- License: mit
- Created: 2017-04-10T11:30:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T06:21:36.000Z (over 9 years ago)
- Last Synced: 2025-05-16T15:13:19.130Z (about 1 year ago)
- Topics: aes-cbc, cryptography, pbkdf2, polymer2
- Language: HTML
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.