Skip to content

Commit 0c82952

Browse files
committed
Add PBKDF2-SHA224 by Norbert Tihanyi
1 parent dd919bc commit 0c82952

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ For **plaintext**, it uses various conversion tricks. First password will *match
4141
## [bcrypt](bcrypt.md)
4242
**bcrypt** truncates passwords to a maximum length of 72 characters. The passwords *match* if the first 72 characters of both passwords match.
4343

44-
## [PBKDF2](pbkdf2.md)
45-
If you use a password longer than 64 bytes and hash it with **PBKDF2-HMAC-SHA1**, it is first *pre-hashed* with SHA1, so `PBKDF2-HMAC-SHA1(password1) === PBKDF2-HMAC-SHA1(password2)` because `sha1(password1) === bin2hex(password2)`.
44+
## [PBKDF2-HMAC-SHA1](pbkdf2-sha1.md), [PBKDF2-HMAC-SHA224](pbkdf2-sha224.md)
45+
If you use a password longer than 64 bytes and hash it with **PBKDF2-HMAC-SHA1**, it is first *pre-hashed* with SHA1, so `PBKDF2-HMAC-SHA1(password1) === PBKDF2-HMAC-SHA1(password2)` because `sha1(password1) === bin2hex(password2)`. The similar *pre-hashing* is applied in case of **PBKDF2-HMAC-SHA224**.
4646

4747
## [Tiger/192,3](tiger192,3.md)
4848
Right now there's just one magic hash in each thanks to [Norbert Tihanyi](https://twitter.com/TihanyiNorbert), more will be hopefully added in the future.
@@ -57,7 +57,8 @@ It all started with [this tweet](https://twitter.com/spazef0rze/status/439352552
5757
- SHA-1: [Tweet](https://twitter.com/spazef0rze/status/523010190900469760), [code](http://3v4l.org/tT4l8), contributions by [roycewilliams](https://github.com/spaze/hashes/pull/4), [0xb0bb](https://github.com/0xb0bb)
5858
- Plaintext: [Tweet](https://twitter.com/spazef0rze/status/522882677452832768), [code](http://3v4l.org/K3ljr)
5959
- bcrypt: [code](https://3v4l.org/2qc8j)
60-
- PBKDF2 by [Christian "CodesInChaos" Winnerlein](https://twitter.com/CodesInChaos/status/422073818228613121), [as explained by Mathias Bynens](https://mathiasbynens.be/notes/pbkdf2-hmac), [code](https://3v4l.org/RROMo)
60+
- PBKDF2-HMAC-SHA1 by [Christian "CodesInChaos" Winnerlein](https://twitter.com/CodesInChaos/status/422073818228613121), [as explained by Mathias Bynens](https://mathiasbynens.be/notes/pbkdf2-hmac), [code](https://3v4l.org/RROMo)
61+
- PBKDF2-HMAC-SHA224 by [Norbert Tihanyi](https://twitter.com/TihanyiNorbert/status/1158643999089053696), [code](https://3v4l.org/kuAPb)
6162
- Tiger/192,3 by [Norbert Tihanyi](https://twitter.com/TihanyiNorbert/status/1133436583183568901)
6263
- SHA-224 by [Norbert Tihanyi](https://twitter.com/TihanyiNorbert/status/1138075224010833921), [hops](https://github.com/spaze/hashes/pull/2), [0xb0bb](https://github.com/0xb0bb)
6364
- SHA-256 by [Norbert Tihanyi](https://twitter.com/TihanyiNorbert/status/1148586399207178241), [Chick3nman](https://github.com/spaze/hashes/pull/3), [roycewilliams](https://github.com/spaze/hashes/pull/4), [matlink](https://github.com/spaze/hashes/pull/13)
File renamed without changes.

pbkdf2-sha224.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```
2+
Tihanyi_collision_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae6vit9wh → )P.!{(]??/lQrfzs4QTQt#6qQe+8
3+
```

0 commit comments

Comments
 (0)