Skip to content
/ cli Public
forked from passw0rd/cli

Passw0rd's CLI tool for communicating with API of the Password-Hardened Encryption (PHE) Service. https://passw0rd.io/ 

License

Notifications You must be signed in to change notification settings

srybin/cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passw0rd CLI

Production GitHub license

Installation | Launching CLI | Commands | Usage Examples | Support

Virgil Security introduces to developers a Passw0rd CLI – an open source tool that provides commands for interacting with the Passw0rd Service and Virgil Cloud. With minimal configuration, you can start using all of the functionality provided by the Passw0rd from your favorite terminal program.

  • Linux shells – Use common shell programs such as Bash, Zsh, and tsch to run commands in Linux, macOS, or Unix.
  • Windows command line – On Microsoft Windows, run commands in either PowerShell or the Windows Command Processor.

Installation

The Passw0rd CLI is provided as a binary file, and it is available for Mac OS, FreeBSD, Linux OS and Windows OS.

Download the latest CLI package here: https://github.com/passw0rd/cli/releases:

Launching CLI

FreeBSD / Linux / Mac OS

Run the Passw0rd CLI with the following command:

./passw0rd

or use sudo ./passw0rd when you need to run the command as an administrator

Windows OS

Run the Passw0rd CLI with the following command:

passw0rd.exe
# or just `passw0rd`

Commands

Using the Passw0rd CLI you can:

  • register and manage your FREE Account at Virgil Cloud
  • register and manage your Passw0rd Application
  • get your Passw0rd App's credentials, such as: App ID, Access token, Server Public Key, Client Secret Key.
  • get your access token

To get more information, run the Passw0rd CLI or its command with the --help or -h option that displays full help list and available commands.

Usage Examples

The Passw0rd CLI has the following usage syntax: passw0rd [global options] command [command options] [arguments...]

The examples below are given for the FreeBSD/Linux/Mac OS platforms.

Register your account

./passw0rd account register my@email.com

Then, you have to confirm your account by entering a confirmation code you got in the email. Now, your account is confirmed and registered.

!!! Once you've confirmed your account, the Password CLI immediately asks you to create a new Passw0rd App (with a default App's name) and a Private Key. You can:

  • accept the offer and get all the necessary credentials (access_token, app_id, public_key, private_key) to start working with Passw0rd Service or
  • come back later. If you choose this option, you get only your Access Token - store it somewhere in a safe place. Other credentials (app_id, public_key, private_key) you'll be able to generate using your access_token later.

Remember, if you lose your access token it won't be possible to restore it or generate a new one in this version of CLI.

Register Passw0rd's Application

./passw0rd --access_token 8Bw0003U000000000000000q6n5dKIlz application create my_passw0rd_app

where:

  • 8Bw0003U000000000000000q6n5dKIlz - is an access token that you got at registration step (it's not possible to restore or generate a new access token in this version);
  • my_passw0rd_app - is a name of your application.

Generate a new Private Key

./passw0rd keygen

! Remember, it's not possible to restore a private key at all.

Get an Update Token

./passw0rd --access_token 8Bw0003U000000000000000q6n5dKIlz --app_id 857111111111111111111c app rotate

where:

  • 8Bw0003U000000000000000q6n5dKIlz - is an access token that you got at registration step (it's not possible to restore or generate a new access token in this version);
  • 857111111111111111111c - is an ID of your application.

Verify user's password

The demo command allows you verify user's password:

./passw0rd --config passw0rd.yaml demo verify user_password user_passw0rd_record

where:

  • passw0rd.yaml - a config file that contains your account credentials: access_token, app_id, public_key, private_key. This file is not created by default. So, create passw0rd.yaml file, paste your account credentials into it and specify the pass to it.
  • user_password - user password that he or she uses to sign in to your server side.
  • user_passw0rd_record - database passw0rd's record that is associated with the user.

License

See LICENSE for details.

Support

Our developer support team is here to help you. Find out more information on our Help Center.

Also, get extra help from our support team: support@VirgilSecurity.com.

About

Passw0rd's CLI tool for communicating with API of the Password-Hardened Encryption (PHE) Service. https://passw0rd.io/ 

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%