mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
Bugfix/argon2 mem usage (#2474)
* reduce argon2 memory usage * update FE argon2 * fix missing typedefs
This commit is contained in:
@@ -84,7 +84,7 @@ impl<G: GenericMountGuard> BackupMountGuard<G> {
|
|||||||
argon2::hash_encoded(
|
argon2::hash_encoded(
|
||||||
password.as_bytes(),
|
password.as_bytes(),
|
||||||
&rand::random::<[u8; 16]>()[..],
|
&rand::random::<[u8; 16]>()[..],
|
||||||
&argon2::Config::default(),
|
&argon2::Config::rfc9106_low_mem(),
|
||||||
)
|
)
|
||||||
.with_kind(crate::ErrorKind::PasswordHashGeneration)?,
|
.with_kind(crate::ErrorKind::PasswordHashGeneration)?,
|
||||||
);
|
);
|
||||||
@@ -134,7 +134,7 @@ impl<G: GenericMountGuard> BackupMountGuard<G> {
|
|||||||
argon2::hash_encoded(
|
argon2::hash_encoded(
|
||||||
new_password.as_bytes(),
|
new_password.as_bytes(),
|
||||||
&rand::random::<[u8; 16]>()[..],
|
&rand::random::<[u8; 16]>()[..],
|
||||||
&argon2::Config::default(),
|
&argon2::Config::rfc9106_low_mem(),
|
||||||
)
|
)
|
||||||
.with_kind(crate::ErrorKind::PasswordHashGeneration)?,
|
.with_kind(crate::ErrorKind::PasswordHashGeneration)?,
|
||||||
);
|
);
|
||||||
|
|||||||
6
frontend/package-lock.json
generated
6
frontend/package-lock.json
generated
@@ -23,7 +23,7 @@
|
|||||||
"@ng-web-apis/common": "^2.0.0",
|
"@ng-web-apis/common": "^2.0.0",
|
||||||
"@ng-web-apis/mutation-observer": "^2.0.0",
|
"@ng-web-apis/mutation-observer": "^2.0.0",
|
||||||
"@ng-web-apis/resize-observer": "^2.0.0",
|
"@ng-web-apis/resize-observer": "^2.0.0",
|
||||||
"@start9labs/argon2": "^0.1.0",
|
"@start9labs/argon2": "^0.2.2",
|
||||||
"@start9labs/emver": "^0.1.5",
|
"@start9labs/emver": "^0.1.5",
|
||||||
"@taiga-ui/addon-charts": "3.20.0",
|
"@taiga-ui/addon-charts": "3.20.0",
|
||||||
"@taiga-ui/cdk": "3.20.0",
|
"@taiga-ui/cdk": "3.20.0",
|
||||||
@@ -5283,7 +5283,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@start9labs/argon2": {
|
"node_modules/@start9labs/argon2": {
|
||||||
"version": "0.1.0"
|
"version": "0.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@start9labs/argon2/-/argon2-0.2.2.tgz",
|
||||||
|
"integrity": "sha512-OEJYDIicwwWg0NgG3d2GSO2Qs65B0LY9dIrlXFIJZJ1mo9vcDIU0kC2Yp8dg4XMt2U16ncsgru98s9I+y5Yuaw=="
|
||||||
},
|
},
|
||||||
"node_modules/@start9labs/emver": {
|
"node_modules/@start9labs/emver": {
|
||||||
"version": "0.1.5",
|
"version": "0.1.5",
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
"@ng-web-apis/common": "^2.0.0",
|
"@ng-web-apis/common": "^2.0.0",
|
||||||
"@ng-web-apis/mutation-observer": "^2.0.0",
|
"@ng-web-apis/mutation-observer": "^2.0.0",
|
||||||
"@ng-web-apis/resize-observer": "^2.0.0",
|
"@ng-web-apis/resize-observer": "^2.0.0",
|
||||||
"@start9labs/argon2": "^0.1.0",
|
"@start9labs/argon2": "^0.2.2",
|
||||||
"@start9labs/emver": "^0.1.5",
|
"@start9labs/emver": "^0.1.5",
|
||||||
"@taiga-ui/addon-charts": "3.20.0",
|
"@taiga-ui/addon-charts": "3.20.0",
|
||||||
"@taiga-ui/cdk": "3.20.0",
|
"@taiga-ui/cdk": "3.20.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user