Crates.io | keycheck |
lib.rs | keycheck |
version | 0.1.0 |
source | src |
created_at | 2023-04-27 23:25:28.87295 |
updated_at | 2023-04-27 23:25:28.87295 |
description | Check your repository for Ethereum private keys |
homepage | https://github.com/vacekj/keycheck |
repository | https://github.com/vacekj/keycheck |
max_upload_size | |
id | 850988 |
size | 99,542 |
Checks your repository for Ethereum private keys in the hexadecimal format. Meant to be used in a pre-commit hook.
cargo install keycheck
Check the current folder and all subfolders for private keys. Respects your .gitignore
Upon finding a private key, outputs the file and line number, but not the key itself.
Exit code 0 for no keys, 1 for key(s) found.
keycheck
brew install lefthook
echo 'pre-commit:
commands:
keycheck:
run: keycheck' > lefthook.yml
lefthook install
keycheck respects a .keycheckignore
file. Format is same as .gitignore
, so globs, comments etc. work as expected.
on OpenZeppelin/openzeppelin-contracts
repo:
$ hyperfine keycheck -i --warmup 5
Benchmark 1: keycheck
Time (mean ± σ): 13.1 ms ± 0.5 ms [User: 3.6 ms, System: 15.9 ms]
Range (min … max): 12.4 ms … 15.2 ms 183 runs
MIT