AES encryption
First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install
to install your element's dependencies, then run polymer serve
to serve your element locally.
$ npm install blox-secure
$ polymer serve
$ polymer test
$ import 'blox-secure';
<blox-secure
password="secret!!"
data="{{data}}"
result="{{result}}">
</blox-secure>
<blox-secure id="bloxSecure"></blox-secure>
<script>
this.$.bloxSecure.secure('secret!!', data)
.then((res) => {
// Do Something
})
.catch((err) => {
// Do Something
})
</script>