Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twe4ked/hash-data
A library and command line tool for identifying hashes
https://github.com/twe4ked/hash-data
command-line-tool hash hashing parsing rust
Last synced: 29 days ago
JSON representation
A library and command line tool for identifying hashes
- Host: GitHub
- URL: https://github.com/twe4ked/hash-data
- Owner: twe4ked
- License: mit
- Created: 2019-03-13T08:36:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-20T01:27:28.000Z (over 5 years ago)
- Last Synced: 2024-10-06T03:54:54.114Z (about 1 month ago)
- Topics: command-line-tool, hash, hashing, parsing, rust
- Language: Rust
- Homepage: https://crates.io/crates/hash-data
- Size: 15.6 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hash-data
A library and command line tool for identifying hashes.
The main part of this crate is in the build script (`build.rs`). The build script uses the TOML
files in `data/` to generate a list of regexes with their matching hash types and uses the
fixtures to generate tests.The TOML files found in data are language agnostic and can be used to build similar libraries
in other languages.## Examples
Using the library:
```rust
assert_eq!(hash_data::parse("$1$42bad211$ums.eDtzK/1711rUkRsd31"), vec!["MD5(Unix)"])
```On the command line:
```sh
$ hash-data '$1$42bad211$ums.eDtzK/1711rUkRsd31'
MD5(Unix)
```## Supported hash types:
- Adler32
- Base64
- Blowfish
- Eggdrop
- OpenBSD
- CRC
- CRC-16, CRC-16-CCITT
- CRC-32
- CRC-32B
- CRC-96(ZIP)
- DES
- Oracle
- Unix
- Domain Cached Credentials
- Domain Cached Credentials 2
- FCS
- FCS-16
- FCS-32
- FNV
- FNV-132
- FNV-164
- GHash
- GHash-32-3
- GHash-32-5
- GOST R 34.11-94
- Haval
- Haval-128
- Haval-160
- Haval-192
- Haval-224
- Haval-256
- Joaat
- Keccak
- Keccak-224
- Keccak-256
- LM
- Lineage II C4
- Lotus Domino
- MD2
- MD4
- MD5
- APR
- Cisco PIX
- IP.Board
- Joomla
- MyBB
- Palshop
- Unix
- Wordpress
- osCommerce
- phpBB3
- MSSQL
- MSSQL(2000)
- MSSQL(2005)
- MSSQL(2008)
- MySQL
- MySQL3.x
- MySQL4.x
- MySQL5.x
- NTLM
- RAdminv2.x
- RIPEMD
- RIPEMD-128
- RIPEMD-160
- RIPEMD-256
- RIPEMD-320
- SAM(LM_Hash:NT_Hash)
- SHA
- SHA-1(Django)
- SHA-1(MaNGOS)
- SHA-1(MaNGOS2)
- SHA-224
- SHA-256
- SHA-256(Django)
- SHA-256(Unix)
- SHA-384
- SHA-384(Django)
- SHA-512
- SHA-512(Drupal)
- SHA-512(Unix)
- SHA3-384
- SHA3-512
- SSHA-1
- Skein
- Skein-256(128, 160, 224)
- Skein-512(128, 160, 224, 256, 384)
- Skein-1024(384, 512)
- Snefru
- Snefru-128
- Snefru-256
- Tiger
- Tiger-128
- Tiger-160
- Tiger-192
- VNC
- Whirlpool
- XOR-32### Thanks
The regexes in this library are a modified version of the regexes found in
[`HashData`].### License
MIT
[`HashData`]: https://github.com/sam-b/hashdata