phpsource / wire-webapp-cryptobox

High-level API with persistent storage for Proteus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wire

This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.

You can find the published source code at github.com/wireapp.

For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.

Build Status

Build Status

Minimal Working Example

Node.js

const cryptobox = require('wire-webapp-cryptobox');

var store = new cryptobox.store.Cache();
var box = new cryptobox.Cryptobox(store);

box.init()
.then(function (instance) {
  var fingerprint = instance.identity.public_key.fingerprint();
  console.log(`Hello, my public fingerprint is '${fingerprint}'.`);
});

Browser

System.import('wire-webapp-cryptobox')
.then(function(cryptobox) {
  var store = new cryptobox.store.Cache();
  var box = new cryptobox.Cryptobox(store);
  return box.init();
})
.then(function(instance) {
  var fingerprint = instance.identity.public_key.fingerprint();
  console.log(`Hello, my public fingerprint is '${fingerprint}'.`);
});

About

High-level API with persistent storage for Proteus


Languages

Language:JavaScript 68.5%Language:TypeScript 30.3%Language:HTML 1.2%