Socket
Book a DemoInstallSign in
Socket

@cipherstash/beta-ore

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@cipherstash/beta-ore

Order revealing encryption library for CipherStash

0.2.1
unpublished
latest
npmnpm
Version published
Maintainers
2
Created
Source

Node-ORE

This package is a thin wrapper around FASTORE for use in Node.js projects.

Usage

const ORE = require('./node-ore');

const PRF_KEY = Buffer.from('2e877eebe7f0b8ef1492f314d66c4dcc', 'hex');
const PRP_KEY = Buffer.from('e6c53234aa05cfe2dd54df83d18d09be', 'hex');

const plaintext = 1566n;
const ore = new ORE(PRP_KEY, PRF_KEY);
const {left: left, right: right} = ore.encrypt(plaintext);

Note: This library does not implement compare functions!

Building

NOTE: this package contains a symbolic link to fastore in src that points to the fastore directory in the same Git repo.

This package is built using node-gyp.

Config is managed in binding.gyp.

To build, run:

node-gyp configure
node-gyp build

Publishing

The package is configured to publish to the private Github repo at https://github.com/cipherstash/node-ore/packages.

To publish, run npm publish.

See also the GitHub Guide.

FAQs

Package last updated on 17 May 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.