Skip to content

dilshod/credentials-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encrypted Credentials

The Credentials package is a TypeScript module inspired by Ruby on Rails credentials. It provides a secure way to manage and edit sensitive data stored in encrypted files.

Features

  • File Encryption: Encrypt and decrypt files using the AES-256-CBC encryption algorithm.
  • Key Management: Automatically generate and manage encryption keys securely.
  • YAML Support: Works with YAML format for storing structured data.
  • Environment-Specific Configuration: Supports environment-specific configuration files (e.g., development, production) for credentials.

Installation

Install the package using npm:

npm install credentials-store --save

Editing Encrypted Files

Edit encrypted credentials for a specific environment using your system's default text editor.

npx credentials-store

or

npx credentials-store production

Reading Encrypted Files

import { credentials } from 'credentials-store';

const config = credentials(); // Read and parse the default credentials file

You can also specify an environment:

const config = credentials('production'); // Read and parse the production environment credentials

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

We welcome contributions! Please feel free to open issues or submit pull requests to improve this package.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published