npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@connectiv-ms/confidential

v1.0.38

Published

Symmetric encryption and decryption for text.

Downloads

13

Readme

conFidential CLI

Description

This command line interface is a wrapper around the conFidential library. You can encrypt and decrypt passwords using the default keys and salt values used by connectiv. If you want to use this in a project, please refer to the conFidential library documentation instead.

These algorithms are supported so far:

| Algorithm | Encryption | Decryption | | ------------------------------------------------------------------------------------------------------------------------ | ---------- | ---------- | | RijndaelManaged | yes | yes | | Aes | yes | yes |

The current default algorithm is RijndaelManaged.

Installation

Make sure, that you do not install both, the NPM and the dotnet version!

dotnet CLI

You can use the dotnet tool CLI to install this application.

dotnet tool install --global Connectiv.ConFidential.Cli

NPM

You can use NPM to install this application

npm install -g @connectiv-ms/confidential

If you do not want to install the tool, you can also run npx @connectiv-ms/confidential -- [All Parameters go here] to run it once.

Usage

After installation, the tool can be invoked in the terminal via the command

confidential

The command arguments need to be structured as follows:

confidential [command] [arguments] [options]

  • If values are supplied, that contain spaces, they must be escaped by quotes: "value with spaces".
  • Commands need to be entered before all other parameters using their name.
  • Arguments need to be entered after the command but before any of the options. Arguments can be provided by value and do not need to be named explicitly. However, the position of the argument needs to be respected. If an argument is described as optional in the table below, it may be omitted. No argument may follow after an omitted argument.
  • Options need to be entered after all other parameters. To supply an option, you can specify the explicit name preceeded by two dashes (Ex.: --optionName value), or - if available - the abbreviated name with one dash (-o value). If an option is a boolean value, it is called a flag. No values need to be supplied for flags. If the flag is supplied (--flagName or -f), the value will be interpreted as true, if the flag is omitted from the call, it will be interpreted as false.

All available commands, arguments and options will be described below.

Commands

encrypt

Arguments

| Argument | Position | Optional | Description | | -------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | value | 1 | yes | If a value is provided, the value will be encrypted and outputted back to the console. This is not recommended, as it will potentially expose the value. If no value is provided, the application will prompt for an unencrypted password instead. The input is masked, so you may enter it when other people are watching. |

Options

| Option | Abbreviation | Description | | --------- | ------------ | --------------------------------------------------------------- | | algorithm | N/A | Can be any of the algorithm names mentioned in the description. |

decrypt

| Argument | Position | Optional | Description | | -------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | value | 1 | yes | If a value is provided, the value will be decrypted and outputted back to the console. The password will be visible in plain text, so make sure that you are in a safe environment. If no value is provided, the application will prompt for an encrypted password instead. |

| Option | Abbreviation | Description | | --------- | ------------ | --------------------------------------------------------------- | | algorithm | N/A | Can be any of the algorithm names mentioned in the description. |

Example calls

// Encrypt a password using Aes
confidential encrypt --algorithm Aes
> Enter password: ***********
> 3nCryp73dH3110W0r1d

// Encrypt hello world using the default algorithm
confidential encrypt "hello world"
> 3nCryp73dH3110W0r1d

// Decrypt hello world using Aes
confidential decrypt "3nCryp73dH3110W0r1d" --algorithm Aes
> hello world