Remove legacy hashes
This commit is contained in:
+2
-2
@@ -86,7 +86,7 @@ DROGON_TEST(GeoJsonMatchesPointInsidePolygon)
|
||||
CHECK(!visione::geojson::pointInPolygon(43.0, 12.5, polygon));
|
||||
}
|
||||
|
||||
DROGON_TEST(PasswordHashSupportsPbkdf2AndLegacy)
|
||||
DROGON_TEST(PasswordHashSupportsPbkdf2Only)
|
||||
{
|
||||
const auto hash = visione::crypto::hashPassword("CorrectHorse123!");
|
||||
CHECK(hash.rfind("pbkdf2_sha256$", 0) == 0);
|
||||
@@ -95,7 +95,7 @@ DROGON_TEST(PasswordHashSupportsPbkdf2AndLegacy)
|
||||
|
||||
const std::string legacy =
|
||||
"sha256$local-dev-salt$CD4FF6AC8C9685D08E55AF693970F15F9BFCD4C0DC9F4D3001D202C9DB00291F";
|
||||
CHECK(visione::crypto::verifyPassword("ChangeMe123!", legacy));
|
||||
CHECK(!visione::crypto::verifyPassword("ChangeMe123!", legacy));
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
||||
Reference in New Issue
Block a user