New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fusedb/crypto

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fusedb/crypto

A FUSE middleware to handle data encryption.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

🧩 FUSE Middleware: Crypto

A FUSE middleware that provides AES encryption to your data

npm i @fushdb/json npm license FUSE ⚡

📦 Installation

npm install @fusedb/core
npm install @fusedb/crypto

🚀 Usage

const FUSE = require("@fusedb/core");
const JSONDriver = require("@fusedb/json");
const Crypto = require("@fusedb/crypto");

const db = new FUSE({
  driver: new JSONDriver({ path: "./data.json" }),
  middleware: [
    new Crypto({
      key: process.env.DB_KEY || "12345678901234567890123456789012",
    })
  ]
});

⚙️ Options

OptionTypeDescription
keystringA 32 character long string for the encryption key

✅ Features

  • ✅ Works with any FUSE driver
  • ✅ Compatible with .get(), .set(), .bulkSet(), etc.
  • ✅ AES-256-GCM encryption

🤝 Contributing

Want to make your own middleware?

Feel free to share your plugin with the community!

🧾 License

Licensed under the Apache-2.0.

Keywords

FUSE

FAQs

Package last updated on 29 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts