Skip to content

Commit 3273277

Browse files
committed
chore: ready for publish
1 parent 1455ecd commit 3273277

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
[package]
22
name = "firebase-scrypt"
3+
description = "Pure Rust implementation of Firebase's script password hashing algorithm"
4+
repository = "https://github.com/Techie-Pi/firebase-scrypt-rust"
5+
homepage = "https://github.com/Techie-Pi/firebase-scrypt-rust"
6+
documentation = "https://github.com/Techie-Pi/firebase-scrypt-rust"
7+
readme = "https://github.com/Techie-Pi/firebase-scrypt-rust#readme"
38
version = "0.1.0"
49
edition = "2021"
10+
license = "MIT"
511

612
[dependencies]
713
base64 = "0.13"

src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl From<StreamCipherError> for EncryptError {
4646
}
4747
}
4848

49-
#[derive(Clone, Debug, PartialEq, Eq)]
49+
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
5050
pub enum VerifyPasswordError {
5151
GenerateDerivedKeyFailed,
5252
DecodingFailed,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#![feature(int_log)]
3030

3131
use aes::{Aes256};
32-
use aes::cipher::{KeyInit, KeyIvInit, StreamCipher};
32+
use aes::cipher::{KeyIvInit, StreamCipher};
3333
use constant_time_eq::constant_time_eq;
3434
use ctr::{Ctr128BE};
3535
use scrypt::Params;

src/simple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::{verify_password, VerifyPasswordError};
2222
///
2323
/// assert!(firebase_scrypt.verify_password(password, salt, password_hash).unwrap())
2424
/// ```
25-
#[derive(Clone, Debug, PartialEq, Eq)]
25+
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
2626
pub struct FirebaseScrypt {
2727
salt_separator: String,
2828
signer_key: String,

0 commit comments

Comments
 (0)