{"id":19534656,"url":"https://github.com/buttercup/credentials","last_synced_at":"2025-04-26T14:35:11.484Z","repository":{"id":40957127,"uuid":"126134068","full_name":"buttercup/credentials","owner":"buttercup","description":"Encrypted credentials handler for Buttercup","archived":false,"fork":false,"pushed_at":"2022-12-30T19:23:41.000Z","size":510,"stargazers_count":5,"open_issues_count":9,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T12:34:09.548Z","etag":null,"topics":["buttercup","encrypted-credentials-handler","encrypted-data"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buttercup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-21T06:35:20.000Z","updated_at":"2022-12-29T09:14:32.000Z","dependencies_parsed_at":"2023-01-31T14:15:19.820Z","dependency_job_id":null,"html_url":"https://github.com/buttercup/credentials","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttercup%2Fcredentials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttercup%2Fcredentials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttercup%2Fcredentials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buttercup%2Fcredentials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buttercup","download_url":"https://codeload.github.com/buttercup/credentials/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248409318,"owners_count":21098766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buttercup","encrypted-credentials-handler","encrypted-data"],"created_at":"2024-11-11T02:15:05.024Z","updated_at":"2025-04-26T14:35:11.441Z","avatar_url":"https://github.com/buttercup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buttercup Credentials\n\u003e Encrypted credentials handler for Buttercup\n\n[![Build Status](https://travis-ci.org/buttercup/credentials.svg?branch=master)](https://travis-ci.org/buttercup/credentials) [![npm version](https://badge.fury.io/js/%40buttercup%2Fcredentials.svg)](https://www.npmjs.com/package/@buttercup/credentials)\n\n## :warning: Deprecated\n\nThis repository is deprecated since [Buttercup core](https://github.com/buttercup/buttercup-core) version 4, as it is now included in the core library. It is no longer required to include this library as its functionality can be found in the [`buttercup`](https://www.npmjs.com/package/buttercup) dependency.\n\n## About\nThis 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.\n\n## Installation\nSimply run `npm install @buttercup/credentials --save` to install.\n\nThis library requires [`@buttercup/app-env`](https://github.com/buttercup/app-env) for environment and low-level functionality initialisation. This is usually performed alongside `buttercup` core.\n\n## Usage\nCredentials can be created in a variety of ways:\n\n```javascript\nconst Credentials = require(\"@buttercup/credentials\");\n\n// ---\n\nconst c1 = new Credentials();\nc1.username = \"bob\";\nc1.password = \"test123\";\n\nconst c2 = new Credentials({ type: \"example\", username: \"alice\", password: \"123test\" });\n\nconst c3 = Credentials.fromPassword(\"amazingPass\");\n\nCredentials\n    .fromSecureString(encryptedString, \"myPass\")\n    .then(creds =\u003e { /* ... */ });\n```\n\nFor more details on what methods are available, check the [API documentation](API.md).\n\n**Note**: The `type` field is used internally by Buttercup, but is not required for external usage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuttercup%2Fcredentials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuttercup%2Fcredentials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuttercup%2Fcredentials/lists"}