1.0.1 • Published 7 years ago
blox-secure v1.0.1
\<blox-secure>
AES encryption
Install the Polymer-CLI
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.
Install blox-secure
$ npm install blox-secureViewing Your Element
$ polymer serveRunning Tests
$ polymer testImport
$ import 'blox-secure';Basic Use
<blox-secure
password="secret!!"
data="{{data}}"
result="{{result}}">
</blox-secure>Javascript Use
<blox-secure id="bloxSecure"></blox-secure>
<script>
this.$.bloxSecure.secure('secret!!', data)
.then((res) => {
// Do Something
})
.catch((err) => {
// Do Something
})
</script>