New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

easysign-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easysign-cli

EasySign CLI helper

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

easysign-cli

A CLI helper application to get and verify EasySign.io hashes

Timestamping files on the BSV blockchain

For support: https://twitter.com/EasySign_io

Usage

Install easysign-cli

npm i -g easysign-cli
export PLANARIA_TOKEN="<your planaria token>"

Check for a timestamp of a file

easysign-cli -f <file name>

Check for a timestamp of a known file hash

easysign-cli -h <file hash>

You can also add the -j option to return a JSON string for further processing.

easysign-cli -f <file name> -j

Hashing a file on a computer

  • OSX: openssl dgst -sha256
  • Linux: sha256sum

Using this in a nodejs project

Install in project

npm i easysign-cli

Use any of the functions:

// get a Planaria token and either define it in your env in PLANARIA_TOKEN or set a global
global.PLANARIA_TOKEN = "<your planaria token>";
import { getHashInfo, getFileHash, retrieveData, decrypt } from 'easysign-cli';

const hash = '<fileHash>';
const info = await getHashInfo(hash);
// or
const hash = await getFileHash('<file name>');
const info = await getHashInfo(hash);
// or
const txData = await retrieveData(hash);
// or
// not an async function
const info = decrypt(hash, '<encrypted data from tx>');

Keywords

FAQs

Package last updated on 21 Apr 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