Skip to content

Commit

Permalink
Update version/edition
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Feb 3, 2023
1 parent 8d2cdb5 commit b6af5e5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ on:
jobs:
test:
name: test
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.56.0, stable]
rust: [1.57.0, stable]

include:
- rust: 1.56.0
- rust: 1.57.0
test_no_std: false
- rust: 1.56.0
- rust: 1.57.0
test_no_std: true
- rust: stable
test_no_std: true
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
Expand All @@ -64,13 +64,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: 1.57.0
override: true
components: clippy

- uses: actions-rs/cargo@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "bcrypt"
version = "0.13.0"
version = "0.14.0"
authors = ["Vincent Prouillet <[email protected]>"]
license = "MIT"
readme = "README.md"
description = "Easily hash and verify passwords using bcrypt"
homepage = "https://github.com/Keats/rust-bcrypt"
repository = "https://github.com/Keats/rust-bcrypt"
keywords = ["bcrypt", "password", "web", "hash"]
edition = "2018"
edition = "2021"
include = ["src/**/*", "LICENSE", "README.md"]

[features]
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
Add the following to Cargo.toml:

```toml
bcrypt = "0.13"
bcrypt = "0.14"
```

The minimum Rust version is 1.56.0.
The minimum Rust version is 1.57.0.

## Usage
The crate makes 3 things public: `DEFAULT_COST`, `hash`, `verify`.
Expand Down Expand Up @@ -48,6 +48,7 @@ for new projects.

## Changelog

* 0.14.0: use `subtle` crate for constant time comparison, update base64 and bump to 2021 edition
* 0.13.0: make zeroize dep opt-out and use fixed salt length
* 0.12.1: zero vec containing password in the hashing function before returning the hash
* 0.12.0: allow null bytes in password
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ pub fn hash_with_salt<P: AsRef<[u8]>>(
/// Verify that a password is equivalent to the hash provided
#[cfg(any(feature = "alloc", feature = "std"))]
pub fn verify<P: AsRef<[u8]>>(password: P, hash: &str) -> BcryptResult<bool> {
use core::convert::TryInto;
use subtle::ConstantTimeEq;

let parts = split_hash(hash)?;
Expand Down

0 comments on commit b6af5e5

Please sign in to comment.