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

@comartek/saf-t

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

@comartek/saf-t

signature for saf-t

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Saf-t

This is Saf-t's library to implement functions help application signature data from case, POS...

More information: https://github.com/skatteetaten/saf-t

Features:

  • generate signature
  • verify signature
  • generate RSA key pair

Install

npm install @comartek/saf-t

or

yarn add @comartek/saf-t

Usage

const { generateSignature, verifySignature } = require("@comartek/saf-t");

const privateKey = 'private-key';
const publicKey = 'public-key';
const data = "0;2014-01-24;23:59:59;123456789;1250.00;1000.00";

const signature = generateSignature(data, privateKey);
console.log(signature);

const isValid = verifySignature(data, signature, publicKey);
console.log('is valid: ', isValid);

FAQs

Package last updated on 10 Mar 2022

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