Git Product home page Git Product logo

secretify-cli's Introduction

Secretify CLI

Installing Secretify CLI on Linux

Step 1: Download Secretify binary with curl

Download the latest release of Secretify for Linux using the following command:

curl -LO "https://www.secretify.io/release/bin/linux/amd64/secretify"

Step 2: Validate the binary (optional)

Download the secretify checksum file:

curl -LO "https://www.secretify.io/release/bin/linux/amd64/secretify.sha256"

Validate the secretify binary against the checksum file:

echo "$(cat secretify.sha256) secretify" | sha256sum --check

If valid, the output is:

secretify: OK

If the check fails, sha256 exits with nonzero status and prints output similar to:

secretify: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match

Step 3: Install secretify

To install Secretify system-wide, use the following command:

sudo install -o root -g root -m 0755 secretify /usr/local/bin/secretify

If you do not have root access on the target system, you can still install secretify to the ~/.local/bin directory:

chmod +x secretify
mkdir -p ~/.local/bin
mv ./secretify ~/.local/bin/secretify
# and then append (or prepend) ~/.local/bin to $PATH

Step 4: Test Secretify installation

After installation, verify that Secretify is installed correctly by running:

secretify version

This command should output the version of Secretify installed.

Installing Secretify CLI on Windows

Download the latest release of Secretify for Windows https://www.secretify.io/release/bin/win/secretify.exe as well as the checksum file https://www.secretify.io/release/bin/win/secretify.sha256.

Usage

dario@quasar:~$ secretify help
The safe way to share or transfer secrets.

Usage:
  secretify [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  create      Create a new secret link
  help        Help about any command
  login       Login with username and password
  logout      Log out
  reveal      Reveal a secret
  version     Show the build version, build time, and git hash

Flags:
  -h, --help   help for secretify

Use "secretify [command] --help" for more information about a command.

Login

To login, run the following command:

secretify login https://example.secretify.io -u YOUR_USERNAME

You will be prompted to enter your password. Once authenticated, your credentials will be securely stored. If a keyring is available, your credentials will be saved there; otherwise, they will be stored in a newly created file located at ~/.secretify/.netrc.

Logout

To logout, run the following command:

secretify logout

Creating a secret

To create a new secret, use the following command:

secretify create text --set message=v3ryS3ecure$

Upon successful creation, you will receive output similar to the following:

https://example.secretify.io/s/QfYkEafyW6j8UKpKGV#VZ3cQFjdhTWUohot-M1fLlXOydSCC25H--wDtF9UGTM

Revealing a secret

To reveal a secret, use the following command:

secretify reveal --link https://example.secretify.io/s/QfYkEafyW6j8UKpKGV#VZ3cQFjdhTWUohot-M1fLlXOydSCC25H--wDtF9UGTM

You will receive output similar to the following:

{"message":"v3ryS3ecure$"}

secretify-cli's People

Contributors

dariocalovic avatar

Watchers

Reto Schelbert avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.