How to use the react-native-sodium.crypto_box_open_easy function in react-native-sodium

To help you get started, we’ve selected a few react-native-sodium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lyubo / react-native-sodium / Example / Example.js View on Github external
              .then((c) => Sodium.crypto_box_open_easy(c,n,alice.pk,bob.sk))
              .then((mm) => mm === m))
github lyubo / react-native-sodium / Example / Example.js View on Github external
Sodium.crypto_box_easy(m,nonce,bobpk,alicesk).then((cc) => {
        Sodium.crypto_box_open_easy(cc,nonce,alicepk,bobsk).then((mm) => {
          this.setState({crypto_box2:(c === cc && m === mm)})
        })
      })
  };