Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mufeedvh/seclip
A CLI utility to secretly copy secrets to clipboard. :lock::memo:
https://github.com/mufeedvh/seclip
cli clipboard command-line pgp pgp-key privacy privacy-tools private-key rust secrets secrets-management ssh ssh-key utility
Last synced: 4 days ago
JSON representation
A CLI utility to secretly copy secrets to clipboard. :lock::memo:
- Host: GitHub
- URL: https://github.com/mufeedvh/seclip
- Owner: mufeedvh
- License: mit
- Created: 2021-04-03T11:11:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-12T11:00:42.000Z (over 2 years ago)
- Last Synced: 2024-05-23T08:06:29.090Z (6 months ago)
- Topics: cli, clipboard, command-line, pgp, pgp-key, privacy, privacy-tools, private-key, rust, secrets, secrets-management, ssh, ssh-key, utility
- Language: Rust
- Homepage:
- Size: 79.1 KB
- Stars: 41
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - mufeedvh/seclip - A CLI utility to secretly copy secrets to clipboard. :lock::memo: (Rust)
README
# `seclip` :lock::memo:
A CLI utility to secretly copy secrets to your clipboard. :crab:
[![crates.io](https://img.shields.io/crates/v/seclip.svg)](https://crates.io/crates/seclip)
[![LICENSE](https://img.shields.io/github/license/mufeedvh/seclip.svg)](https://github.com/mufeedvh/seclip/blob/master/LICENSE)
[![tweet](https://img.shields.io/twitter/url/https/github.com/mufeedvh/seclip.svg?style=social)](https://twitter.com/intent/tweet?text=seclip%20-%20A%20CLI%20utility%20to%20secretly%20copy%20secrets%20to%20clipboard:&url=https%3A%2F%2Fgithub.com%2Fmufeedvh%2Fseclip)
## Table of Contents
* [Features](#features)
* [Installation](#installation)
* [Usage](#usage)
* [Build From Source](#build-from-source)
* [Contribution](#contribution)
* [License](#license)
* [Support The Author](#liked-the-project)## 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:
```bash
$ sudo apt-get install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
```Download the latest binary for your OS from [Releases](https://github.com/mufeedvh/seclip/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:
```bash
$ 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](https://git-scm.org/downloads)
* [Rust](https://rust-lang.org/tools/install)
* 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.