Socket
Socket
Sign inDemoInstall

@behance/eref-js

Package Overview
Dependencies
Maintainers
35
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@behance/eref-js

Eref handling for Livefyre arc4 encoded messages


Version published
Weekly downloads
1
Maintainers
35
Weekly downloads
 
Created
Source

eref-js

Background

What is an eref?

An eref is an ARC4 encrypted reference that contains an encrypted contentId in the Livefyre system.

Install

npm install

Test

To run in phantomjs: npm test To run in the browser, npm start and navigate to http://localhost:{port}/tests/runner.html

API

decryptErefs(arrayOfErefs, arrayOfKeys)

Given an array of erefs and an array of possible keys to decode the erefs, this function will return the first contentId of an eref it is able to decode, or undefined if none are correctly decoded.

###decryptEref(eref, arrayOfKeys)

Given an single eref and an array of keys, attempts to decrypt the eref and return a contentId. If it is not possible, will return undefined.

FAQs

Package last updated on 07 Nov 2017

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