mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
make the "hash" arguments match the display UX values
that way any entries that would show up "exactly" as the same description would flag as conflicts on re-upload
This commit is contained in:
parent
7ec39e4be6
commit
9e0b63c871
1 changed files with 1 additions and 2 deletions
|
|
@ -431,7 +431,6 @@ impl StorageContent for TotpRecord {
|
||||||
|
|
||||||
fn hash(&self) -> Vec<u8> {
|
fn hash(&self) -> Vec<u8> {
|
||||||
let mut h = ctap_crypto::sha256::Sha256::new();
|
let mut h = ctap_crypto::sha256::Sha256::new();
|
||||||
h.update(self.secret.as_bytes());
|
|
||||||
h.update(self.name.as_bytes());
|
h.update(self.name.as_bytes());
|
||||||
h.finalize().to_vec()
|
h.finalize().to_vec()
|
||||||
}
|
}
|
||||||
|
|
@ -659,7 +658,7 @@ impl StorageContent for PasswordRecord {
|
||||||
|
|
||||||
fn hash(&self) -> Vec<u8> {
|
fn hash(&self) -> Vec<u8> {
|
||||||
let mut h = ctap_crypto::sha256::Sha256::new();
|
let mut h = ctap_crypto::sha256::Sha256::new();
|
||||||
h.update(self.password.as_bytes());
|
h.update(self.description.as_bytes());
|
||||||
h.update(self.username.as_bytes());
|
h.update(self.username.as_bytes());
|
||||||
h.finalize().to_vec()
|
h.finalize().to_vec()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue