https://github.com/bionade24/histcleaner
Clean your (history) files from secrets.
https://github.com/bionade24/histcleaner
command-line haskell haskell-application
Last synced: 10 months ago
JSON representation
Clean your (history) files from secrets.
- Host: GitHub
- URL: https://github.com/bionade24/histcleaner
- Owner: bionade24
- License: gpl-3.0
- Created: 2023-06-02T19:11:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-25T14:30:10.000Z (about 1 year ago)
- Last Synced: 2025-08-31T13:33:42.360Z (10 months ago)
- Topics: command-line, haskell, haskell-application
- Language: Haskell
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
Histcleaner - Sanitize secrets from your files
==
Command line tool that sanitizes your (history) files of your secrets like passwords or tokens, so you can rest in calm without looking through those files yourself :)
Secrets to be sanitized have to be added to the database of the tool, which stores an Argon2id hash of them,
so that the tool can't leak your secrets itself.
Those hashes are then compared to words in the file you clean and the secrets get redacted.
The initial run may take a while, but the tool will resume at the last known location on the next run.
Currently supports plain text files like your shell's histfile and `.lesshst`.
```
$ histcleaner -h
histcleaner
Usage: histcleaner COMMAND
remove your secrets from a file
Available options:
-h,--help Show this help text
Available commands:
secret Manage the secrets database
clean Clean history file of secrets
```
Source installation instructions
=
1. Install ghc & cabal
2. `git clone --single-branch https://github.com/bionade24/histcleaner.git`
3. `cd histcleaner && cabal update && cabal build`
4. `install -m755 $(find -type f -executable -name histcleaner) /usr/local/bin/histcleaner`