File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77jobs :
88 test :
99 name : test
10- runs-on : ubuntu-18.04
10+ runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
13- rust : [1.56 .0, stable]
13+ rust : [1.57 .0, stable]
1414
1515 include :
16- - rust : 1.56 .0
16+ - rust : 1.57 .0
1717 test_no_std : false
18- - rust : 1.56 .0
18+ - rust : 1.57 .0
1919 test_no_std : true
2020 - rust : stable
2121 test_no_std : true
2222 fail-fast : false
2323
2424 steps :
2525 - name : Checkout repository
26- uses : actions/checkout@v2
26+ uses : actions/checkout@v3
2727
2828 - name : Install Rust
2929 uses : actions-rs/toolchain@v1
4747 runs-on : ubuntu-latest
4848 steps :
4949 - name : Checkout
50- uses : actions/checkout@master
50+ uses : actions/checkout@v3
5151
5252 - uses : actions-rs/toolchain@v1
5353 with :
@@ -64,13 +64,13 @@ jobs:
6464 runs-on : ubuntu-latest
6565 steps :
6666 - name : Checkout
67- uses : actions/checkout@master
67+ uses : actions/checkout@v3
6868
6969 - uses : actions-rs/toolchain@v1
7070 with :
71- profile : minimal
72- toolchain : stable
71+ toolchain : 1.57.0
7372 override : true
73+ components : clippy
7474
7575 - uses : actions-rs/cargo@v1
7676 with :
Original file line number Diff line number Diff line change 11[package ]
22name = " bcrypt"
3- version = " 0.13 .0"
3+ version = " 0.14 .0"
44authors = [" Vincent Prouillet <hello@prouilletvincent.com>" ]
55license = " MIT"
66readme = " README.md"
77description = " Easily hash and verify passwords using bcrypt"
88homepage = " https://github.com/Keats/rust-bcrypt"
99repository = " https://github.com/Keats/rust-bcrypt"
1010keywords = [" bcrypt" , " password" , " web" , " hash" ]
11- edition = " 2018 "
11+ edition = " 2021 "
1212include = [" src/**/*" , " LICENSE" , " README.md" ]
1313
1414[features ]
Original file line number Diff line number Diff line change 88Add the following to Cargo.toml:
99
1010``` toml
11- bcrypt = " 0.13 "
11+ bcrypt = " 0.14 "
1212```
1313
14- The minimum Rust version is 1.56 .0.
14+ The minimum Rust version is 1.57 .0.
1515
1616## Usage
1717The crate makes 3 things public: ` DEFAULT_COST ` , ` hash ` , ` verify ` .
@@ -48,6 +48,7 @@ for new projects.
4848
4949## Changelog
5050
51+ * 0.14.0: use ` subtle ` crate for constant time comparison, update base64 and bump to 2021 edition
5152* 0.13.0: make zeroize dep opt-out and use fixed salt length
5253* 0.12.1: zero vec containing password in the hashing function before returning the hash
5354* 0.12.0: allow null bytes in password
Original file line number Diff line number Diff line change @@ -194,7 +194,6 @@ pub fn hash_with_salt<P: AsRef<[u8]>>(
194194/// Verify that a password is equivalent to the hash provided
195195#[ cfg( any( feature = "alloc" , feature = "std" ) ) ]
196196pub fn verify < P : AsRef < [ u8 ] > > ( password : P , hash : & str ) -> BcryptResult < bool > {
197- use core:: convert:: TryInto ;
198197 use subtle:: ConstantTimeEq ;
199198
200199 let parts = split_hash ( hash) ?;
You can’t perform that action at this time.
0 commit comments