Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_testSodium() {
Sodium.sodium_version_string()
.then((version) => this.setState({sodium_version_string: version}))
.catch((error) => this._handleError(error))
// Random data generation
this._testRandom1()
this._testRandom2()
this._testRandom3()
// Secret key cryptography - authenticated encryption
this._testSecretBox1()
// Secret key cryptography - authentication
this._testAuth1()
// Public-key cryptography - authenticated encryption
this._testBox1()