Socket
Socket
Sign inDemoInstall

@buttercup/credentials

Package Overview
Dependencies
44
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @buttercup/credentials

Encrypted credentials handler for Buttercup


Version published
Weekly downloads
70
increased by677.78%
Maintainers
2
Install size
75.3 kB
Created
Weekly downloads
 

Changelog

Source

v2.0.0

2020-01-03

  • Breaking changes:
    • app-env used for core crypto functionality

Readme

Source

Buttercup Credentials

Encrypted credentials handler for Buttercup

Build Status npm version

About

This library provides the Credentials implementation used throughout the Buttercup suite. Credentials is a toolkit to handle account/login data in a secure manner by providing easy encryption/decryption of user details.

Installation

Simply run npm install @buttercup/credentials --save to install.

This library requires @buttercup/app-env for environment and low-level functionality initialisation. This is usually performed alongside buttercup core.

Usage

Credentials can be created in a variety of ways:

const Credentials = require("@buttercup/credentials");

// ---

const c1 = new Credentials();
c1.username = "bob";
c1.password = "test123";

const c2 = new Credentials({ type: "example", username: "alice", password: "123test" });

const c3 = Credentials.fromPassword("amazingPass");

Credentials
    .fromSecureString(encryptedString, "myPass")
    .then(creds => { /* ... */ });

For more details on what methods are available, check the API documentation.

Note: The type field is used internally by Buttercup, but is not required for external usage.

Keywords

FAQs

Last updated on 03 Jan 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc