Socket
Socket
Sign inDemoInstall

signedsource

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signedsource

This package exports utilities to sign and verify generated files.


Version published
Weekly downloads
2.8M
increased by0.45%
Maintainers
1
Weekly downloads
 
Created

What is signedsource?

The signedsource npm package is designed to help developers sign and verify the source of their code or data. This is particularly useful in scenarios where authenticity and integrity of code need to be ensured. The package provides functionalities to generate signatures for strings or data and verify them later to confirm their source and integrity.

What are signedsource's main functionalities?

Signing data

This feature allows you to sign a piece of data or string. The `sign` function takes a string as input and returns a signature string. This signature can be used later to verify the data.

const signedsource = require('signedsource');
const data = 'Hello, world!';
const signature = signedsource.sign(data);
console.log(signature);

Verifying data

This feature enables the verification of data against a given signature. The `verify` function takes the original data and a signature, and returns a boolean indicating whether the signature is valid for the given data.

const signedsource = require('signedsource');
const data = 'Hello, world!';
const signature = '...'; // Assume this is a valid signature
const isValid = signedsource.verify(data, signature);
console.log(isValid ? 'Valid' : 'Invalid');

Other packages similar to signedsource

FAQs

Package last updated on 23 Sep 2019

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