Add new encryption scheme in server part.

This commit is contained in:
2017-04-17 20:37:26 +02:00
parent 89465f4c68
commit cef1194ad0
10 changed files with 144 additions and 686 deletions

View File

@@ -44,7 +44,7 @@ function load_database()
// Brute force ??
$db->close();
return null;
}
}
$db->query("UPDATE conf SET last_access_time=$usec");
$db->close();
$db = new SQLite3("./gpass.bdd", SQLITE3_OPEN_READONLY);
@@ -79,6 +79,7 @@ for ($i=0; $i<$MAX_PASSWORDS_PER_REQUEST && isset($_POST["k$i"]); $i++)
$result->finalize();
if (isset($row["password"]))
{
echo "matched_key=" . $i . "\n";
echo "pass=" . $row["password"] . "\n";
break;
}