inkdrop-crypto

Encryption utilities for Inkdrop


Keywords
inkdrop, electron, react-native
License
MIT
Install
npm install inkdrop-crypto@2.0.2

Documentation

Inkdrop Encryption Utilities

This module is for encrpting/decrypting user data in Inkdrop.

How to use

NodeJS

import { createEncryptionHelperWithNodeCrypto } from 'inkdrop-crypto'

const helpers = createEncryptionHelperWithNodeCrypto()

React Native

Use rn-nodeify for shimming crypto module in RN environment.

import './shim'
import createEncryptionHelper from 'inkdrop-crypto'
import crypto from 'crypto'

const helpers = createEncryptionHelper(crypto)

See test to learn how to encrypt/decrypt data.