1
0
mirror of https://github.com/vrana/adminer.git synced 2025-09-03 03:13:00 +02:00

Refactor generating of private key and random strings

Generating of private key is atomic now.
More secure random strings on PHP 7+.
This commit is contained in:
Peter Knut
2024-10-07 23:37:33 +02:00
parent a63fadd503
commit 2d4b73653b
5 changed files with 71 additions and 31 deletions

View File

@@ -16,8 +16,11 @@ class Adminer {
function connectSsl() {
}
/**
* @throws \Random\RandomException
*/
function permanentLogin($create = false) {
return password_file($create);
return get_private_key($create);
}
function bruteForceKey() {