Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neoskop/ethereal-secrets-middleware

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoskop/ethereal-secrets-middleware

An express middleware to expose a REST endpoint to issue secrets for client to encrypt their local stores with. The keys are stored in a Redis DB.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
117
increased by101.72%
Maintainers
1
Weekly downloads
 
Created
Source

Ethereal Secrets

An express middleware to expose a REST endpoint to issue secrets for client to encrypt their local stores with. The keys are stored in a Redis DB.

Usage

let app = express();
app.use('/secrets', etherealSecrets({
    ttl: 15 * 60,
    secret: 'icanhazcheezburger?',
    redis: {
      host: 'localhost'
    }
}));

If a client now issues GET /secrets the API will return JSON in the form of:

{
  "key": "<the key>"
}

Along with a cookie containing a session ID. On subsequent requests the same key is returned as long as the session is valid and the same cookie is sent with the request.

FAQs

Package last updated on 31 Jul 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