Crates.io | hash-data |
lib.rs | hash-data |
version | 0.3.0 |
source | src |
created_at | 2019-03-17 04:26:24.343852 |
updated_at | 2019-03-18 09:30:37.810232 |
description | A library and command line tool for identifying hashes. |
homepage | |
repository | https://github.com/twe4ked/hash-data |
max_upload_size | |
id | 121487 |
size | 18,494 |
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.
Using the library:
assert_eq!(hash_data::parse("$1$42bad211$ums.eDtzK/1711rUkRsd31"), vec!["MD5(Unix)"])
On the command line:
$ hash-data '$1$42bad211$ums.eDtzK/1711rUkRsd31'
MD5(Unix)
License: MIT