Giter Site home page Giter Site logo

seclip-'s Introduction

seclip ๐Ÿ”’๐Ÿ“

A CLI utility to secretly copy secrets to your clipboard. ๐Ÿฆ€

crates.io LICENSE tweet

seclip

Table of Contents

Features

  • Cross-platform.
  • Copy secret values from files. (ssh key, pgp key, github/gitlab token, private keys, etc.)
  • Copy secret values from environment variables.
  • Self-destruct: Automatically clear clipboard after a given timeout.

Installation

On Linux you'll need the xcb, xcb-render, xcb-shape, and xcb-xfixes X11 libraries at compile time. On Ubuntu, you can install these with:

$ sudo apt-get install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev

Download the latest binary for your OS from Releases OR install with cargo:

$ cargo install seclip

Usage

Get utility info and the list of all the arguments:

$ seclip -h

Copy a value from a file

$ seclip ~/.ssh/id_rsa

Copy a value from environment variable

$ seclip ENV_VAR

Copy a value and self-destruct the value from clipboard after a given timeout (in seconds) (-c/--clear)

$ seclip ~/.ssh/id_rsa -c 20

How is it useful?

When working in shared environments, sharing your screen, or you're at a public place, reading secret tokens could expose it to prying eyes, that's where seclip can help you. Just give the path to the private key or the environment variable, the secret value will be copied to your clipboard. In instances where you might forget that you copied a secret value, you can use the -c / --clear feature to automatically clear your clipboard in a given time.

You can also use this as a fast shortcut to copy any file contents to clipboard!

Build From Source

Prerequisites

On Linux you'll need the xcb, xcb-render, xcb-shape, and xcb-xfixes X11 libraries at compile time. On Ubuntu, you can install these with:

$ sudo apt-get install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev

For building seclip from source, you need to have these tools installed

  • Git
  • Rust
  • Cargo (Automatically installed when installing Rust)
  • A C linker (Only for Linux, generally comes pre-installed)
$ git clone https://github.com/mufeedvh/seclip.git
$ cd seclip/
$ cargo build --release

The first command clones the seclip repository in your local machine. The next two commands changes into the seclip directory and builds it in release mode.

Contribution

Ways to contribute

  • Suggest a feature
  • Report a bug
  • Fix something and open a pull request
  • Help me document the code
  • Spread the word

License

Licensed under the MIT License, see LICENSE for more information.

seclip-'s People

Contributors

mufeedvh avatar v1dhun 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.