blockkeeper / blockkeeper-frontend-web

blockkeeper.io - Your blockchain book keeping app
GNU General Public License v3.0
25 stars 12 forks source link

Encrypt/Decrypt payloads with Web-Cryptography-API #25

Closed d3ck-org closed 6 years ago

d3ck-org commented 6 years ago

All API related classes like Addrcontain the this.encrypt -> this.cx.core.encrypt + this.decrypt() -> this.cx.core.decrypt functions. This functions are methods of the logic/Core module:

$ cat logic/Core.js
...
  toSecret (username, pw) { 
    ...
  }

  encrypt (pld, secret, noFatal) {
    ...
  }

  decrypt (pld, secret, noFatal) {
    ...
  }
...

Core's encrypt(), decrypt() and the related toSecret() need to be implemented. The underlying standard for the implementation is the Web Cryptography API:

yeahoffline commented 6 years ago

bbb3507f2c8230056527a1a5409490c23ab01c86