Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cipherstash/ore

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cipherstash/ore

Order revealing encryption library for CipherStash

  • 0.2.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
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 18 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc