Skip to content

Commit 16fd842

Browse files
committed
update to digest v0.10
1 parent 8754a8d commit 16fd842

29 files changed

+524
-316
lines changed

.github/workflows/argon2.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
toolchain: ${{ matrix.rust }}
3636
target: ${{ matrix.target }}
3737
override: true
38-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
39-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features password-hash
40-
- run: cargo build --target ${{ matrix.target }} --release
41-
- run: cargo build --target ${{ matrix.target }} --release --features zeroize
38+
- run: cargo build --target ${{ matrix.target }} --no-default-features
39+
- run: cargo build --target ${{ matrix.target }} --no-default-features --features password-hash
40+
- run: cargo build --target ${{ matrix.target }}
41+
- run: cargo build --target ${{ matrix.target }} --features zeroize
4242

4343
test:
4444
runs-on: ubuntu-latest
@@ -54,7 +54,7 @@ jobs:
5454
profile: minimal
5555
toolchain: ${{ matrix.rust }}
5656
override: true
57-
- run: cargo test --release --no-default-features
58-
- run: cargo test --release --no-default-features --features password-hash
59-
- run: cargo test --release
60-
- run: cargo test --release --all-features
57+
- run: cargo test --no-default-features
58+
- run: cargo test --no-default-features --features password-hash
59+
- run: cargo test
60+
- run: cargo test --all-features

.github/workflows/pbkdf2.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
toolchain: ${{ matrix.rust }}
3636
target: ${{ matrix.target }}
3737
override: true
38-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
38+
- run: cargo build --target ${{ matrix.target }} --no-default-features
39+
- run: cargo build --target ${{ matrix.target }} --no-default-features --features simple
3940

4041
test:
4142
runs-on: ubuntu-latest
@@ -51,10 +52,6 @@ jobs:
5152
profile: minimal
5253
toolchain: ${{ matrix.rust }}
5354
override: true
54-
- run: cargo test --release --no-default-features
55-
- run: cargo test --release
56-
- run: cargo test --release --features simple
57-
- run: cargo test --release --features parallel
58-
- run: cargo test --release --features sha1
59-
- run: cargo test --release --features simple,sha1
60-
- run: cargo test --release --all-features
55+
- run: cargo test --no-default-features
56+
- run: cargo test
57+
- run: cargo test --all-features

.github/workflows/scrypt.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
toolchain: ${{ matrix.rust }}
3636
target: ${{ matrix.target }}
3737
override: true
38-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
39-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features simple
38+
- run: cargo build --target ${{ matrix.target }} --no-default-features
39+
- run: cargo build --target ${{ matrix.target }} --no-default-features --features simple
4040

4141
test:
4242
runs-on: ubuntu-latest
@@ -52,5 +52,6 @@ jobs:
5252
profile: minimal
5353
toolchain: ${{ matrix.rust }}
5454
override: true
55-
- run: cargo test --release --no-default-features
56-
- run: cargo test --release
55+
- run: cargo test --no-default-features
56+
- run: cargo test
57+
- run: cargo test --all-features

.github/workflows/sha-crypt.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
toolchain: ${{ matrix.rust }}
3636
target: ${{ matrix.target }}
3737
override: true
38-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
38+
- run: cargo build --target ${{ matrix.target }} --no-default-features
3939

4040
test:
4141
runs-on: ubuntu-latest
@@ -51,5 +51,6 @@ jobs:
5151
profile: minimal
5252
toolchain: ${{ matrix.rust }}
5353
override: true
54-
- run: cargo test --release --no-default-features
55-
- run: cargo test --release
54+
- run: cargo test --no-default-features
55+
- run: cargo test
56+
- run: cargo test --all-features

Cargo.lock

Lines changed: 35 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ members = [
77
"scrypt",
88
"sha-crypt"
99
]
10+
11+
[profile.dev]
12+
opt-level = 2

README.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
# RustCrypto: password hashes ![Rust Version][rustc-image] [![Project Chat][chat-image]][chat-link] [![dependency status][deps-image]][deps-link]
1+
# RustCrypto: Password Hashes [![Project Chat][chat-image]][chat-link] [![dependency status][deps-image]][deps-link]
22

3-
Collection of password hashing algorithms, otherwise known as password-based key
4-
derivation functions, written in pure Rust.
3+
Collection of password hashing algorithms, otherwise known as password-based key derivation functions, written in pure Rust.
54

6-
## Supported algorithms
5+
## Supported Algorithms
76

8-
| Name | Crates.io | Documentation | Build |
9-
|-----------|------------|---------------|-------|
10-
| [Argon2](https://en.wikipedia.org/wiki/Argon2) | [![crates.io](https://img.shields.io/crates/v/argon2.svg)](https://crates.io/crates/argon2) | [![Documentation](https://docs.rs/argon2/badge.svg)](https://docs.rs/argon2) | ![Build](https://github.com/RustCrypto/password-hashes/workflows/argon2/badge.svg?branch=master&event=push) |
11-
| [bcrypt-pbkdf](https://flak.tedunangst.com/post/bcrypt-pbkdf) | [![crates.io](https://img.shields.io/crates/v/bcrypt-pbkdf.svg)](https://crates.io/crates/bcrypt-pbkdf) | [![Documentation](https://docs.rs/bcrypt-pbkdf/badge.svg)](https://docs.rs/bcrypt-pbkdf) | ![Build](https://github.com/RustCrypto/password-hashes/workflows/bcrypt-pbkdf/badge.svg?branch=master&event=push) |
12-
| [PBKDF2](https://en.wikipedia.org/wiki/PBKDF2) | [![crates.io](https://img.shields.io/crates/v/pbkdf2.svg)](https://crates.io/crates/pbkdf2) | [![Documentation](https://docs.rs/pbkdf2/badge.svg)](https://docs.rs/pbkdf2) | ![Build](https://github.com/RustCrypto/password-hashes/workflows/pbkdf2/badge.svg?branch=master&event=push) |
13-
| [scrypt](https://en.wikipedia.org/wiki/Scrypt) | [![crates.io](https://img.shields.io/crates/v/scrypt.svg)](https://crates.io/crates/scrypt) | [![Documentation](https://docs.rs/scrypt/badge.svg)](https://docs.rs/scrypt) | ![Build](https://github.com/RustCrypto/password-hashes/workflows/scrypt/badge.svg?branch=master&event=push) |
14-
| [SHA-crypt](https://www.akkadia.org/drepper/SHA-crypt.txt) | [![crates.io](https://img.shields.io/crates/v/sha-crypt.svg)](https://crates.io/crates/sha-crypt) | [![Documentation](https://docs.rs/sha-crypt/badge.svg)](https://docs.rs/sha-crypt) | ![Build](https://github.com/RustCrypto/password-hashes/workflows/sha-crypt/badge.svg?branch=master&event=push) |
7+
| Algorithm | Crate | Crates.io | Documentation | MSRV |
8+
|-----------|-------|:----------:|:-------------:|:----:|
9+
| [Argon2] | `argon2` | [![crates.io](https://img.shields.io/crates/v/argon2.svg)](https://crates.io/crates/argon2) | [![Documentation](https://docs.rs/argon2/badge.svg)](https://docs.rs/argon2) | ![MSRV 1.51][msrv-1.51] |
10+
| [bcrypt-pbkdf] | `bcrypt-pbkdf` |[![crates.io](https://img.shields.io/crates/v/bcrypt-pbkdf.svg)](https://crates.io/crates/bcrypt-pbkdf) | [![Documentation](https://docs.rs/bcrypt-pbkdf/badge.svg)](https://docs.rs/bcrypt-pbkdf) | ![MSRV 1.51][msrv-1.51] |
11+
| [PBKDF2] | `pbkdf2` | [![crates.io](https://img.shields.io/crates/v/pbkdf2.svg)](https://crates.io/crates/pbkdf2) | [![Documentation](https://docs.rs/pbkdf2/badge.svg)](https://docs.rs/pbkdf2) | ![MSRV 1.51][msrv-1.51] |
12+
| [scrypt] | `scrypt` | [![crates.io](https://img.shields.io/crates/v/scrypt.svg)](https://crates.io/crates/scrypt) | [![Documentation](https://docs.rs/scrypt/badge.svg)](https://docs.rs/scrypt) | ![MSRV 1.51][msrv-1.51] |
13+
| [SHA-crypt] | `sha-crypt` | [![crates.io](https://img.shields.io/crates/v/sha-crypt.svg)](https://crates.io/crates/sha-crypt) | [![Documentation](https://docs.rs/sha-crypt/badge.svg)](https://docs.rs/sha-crypt) | ![MSRV 1.51][msrv-1.51] |
1514

16-
Please see the [OWASP Password Storage Cheat Sheet] for assistance in selecting
17-
an appropriate algorithm for your use case.
15+
Please see the [OWASP Password Storage Cheat Sheet] for assistance in selecting an appropriate algorithm for your use case.
16+
17+
### Minimum Supported Rust Version (MSRV) Policy
18+
19+
MSRV bumps are considered breaking changes and will be performed only with minor version bump.
1820

1921
## License
2022

@@ -27,17 +29,21 @@ at your option.
2729

2830
### Contribution
2931

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

3334
[//]: # (badges)
3435

35-
[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg
3636
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
3737
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260046-password-hashes
3838
[deps-image]: https://deps.rs/repo/github/RustCrypto/password-hashes/status.svg
3939
[deps-link]: https://deps.rs/repo/github/RustCrypto/password-hashes
40+
[msrv-1.51]: https://img.shields.io/badge/rustc-1.51.0+-blue.svg
4041

4142
[//]: # (general links)
4243

44+
[Argon2]: https://en.wikipedia.org/wiki/Argon2
45+
[bcrypt-pbkdf]: https://flak.tedunangst.com/post/bcrypt-pbkdf
46+
[PBKDF2]: https://en.wikipedia.org/wiki/PBKDF2
47+
[scrypt]: https://en.wikipedia.org/wiki/Scrypt
48+
[SHA-crypt]: https://www.akkadia.org/drepper/SHA-crypt.txt
4349
[OWASP Password Storage Cheat Sheet]: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html

0 commit comments

Comments
 (0)