Skip to content

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

License

Notifications You must be signed in to change notification settings

bkawk/AES-256-CBC-PBKDF2-30K

Repository files navigation

<aes-256-cbc-pbkdf2-30k>

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 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. Run polymer test to run your application's test suite locally.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages