#hashing #pbkdf2 #hash #identify #algorithm #multi-threading #parameters

pbkdf2-identifier

A crate to identify the parameters used to generate a PBKDF2 hash

6 releases

0.0.6 Dec 8, 2019
0.0.5 Dec 8, 2019
0.0.4 Nov 27, 2019

#5 in #pbkdf2


Used in pbkdf2-identifier-cli

MIT/Apache

11KB
204 lines

PBKDF2-identifier

This is a tool to identify the parameters used to generate a PBKDF2 hash. Useful to defeat the good old "Security by Obscurity". It is able to determine the number of iteration and the underlying algorithm. This currently supports HMAC-SHA1, HMAC-SHA256 and HMAC-SHA512. Also, this will eventually be multithreaded when not in webassembly. This will also eventually be made as a webassembly module.

How to use

If you don't know the algorithm:

pbkdf2-identifier -p password123 -m 1000 -H ir/kfDpM5af8tVwGbeRgDA== -s L1q4pm5kD3cu1G9ByIx5Lw==

If you already know the algorithm:

pbkdf2-identifier -p password123 -m 1000 -H 8abfe47c3a4ce5a7fcb55c066de4600c -s 2f5ab8a66e640f772ed46f41c88c792f -f hex -a HMAC-SHA512

License

This project is licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in pbkdf2-identifier by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.6–1MB
~19K SLoC