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

@proca/crypto

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@proca/crypto

Decrypt personal information in Proca action

  • 3.4.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Proca SDK: encryption helpers

Proca server pushes actions to AMQP service in format defined in @proca/queue package. The action or event data can contain Personal Identifiable Information (PII) in encrypted form. This package provides helpers to decrypt the NaCL encrypted payload.

TypeScript types

  • KeyStore - Contains NaCL key pairs used to decrypt PII.

Functions

  • loadKeyStoreFromFile(filename : string) - load KeyStore from a file.

  • loadKeyStoreFromString(content : string) - load KeyStore from a string

  • storeKeyStoreToFile(keystore : KeyStore, filename? : string) - store KeyStore into file

  • decryptPersonalInfo(pii : PersonalInfo | undefined, keyStore : KeyStore) : any - decrypt PersonalInfo record (see @proca/queue definitions) using a provided KeyStore

FAQs

Package last updated on 18 Jan 2023

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