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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user