Welcome to Crypto-Middleware
This documentation provides all the information needed to start using the crypto-middleware API tgo start securing your web applications.
About
Crypto-middleware is a middleware library that can be installed in your client side javascript web application. It proxies your File object, converts it to a stream, encrypts it using a passphrase and returns back a transform stream which can be consumed however you like. You can Read the stream to perform other actions, or you can write the stream directly to your cloud storage
Install the library
The best way to interact with our API is to use one of our official libraries:
# Install via NPM
npm install --save crypto-middlwareQuick Start
Add the import to your React/Vue/Svelte component or import it directly in your main.js or index.js file
import * as secure from "crypto-middleware";Crypto-middleware exposes many methods, but you may only need two that does most of the heavy lifting for you.
file
File Object
HTML file input object
Yes
passphrase
String
Enforce a strong passphrase
Yes
Example Encryption.
This example, takes in a File object, and a passphrase.
The example uses AWS to upload the file. The whole process will be streamed with low latency and memory consumption.
Last updated