mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
better keygen for masterkey on setup
This commit is contained in:
@@ -847,7 +847,7 @@ if(isset($_POST['add_user'])){
|
|||||||
$password = password_hash($_POST['password'], PASSWORD_DEFAULT);
|
$password = password_hash($_POST['password'], PASSWORD_DEFAULT);
|
||||||
|
|
||||||
//Generate master encryption key
|
//Generate master encryption key
|
||||||
$site_encryption_master_key = keygen();
|
$site_encryption_master_key = bin2hex(random_bytes(8));
|
||||||
|
|
||||||
//Generate user specific key
|
//Generate user specific key
|
||||||
$user_specific_encryption_ciphertext = setupFirstUserSpecificKey($_POST['password'], $site_encryption_master_key);
|
$user_specific_encryption_ciphertext = setupFirstUserSpecificKey($_POST['password'], $site_encryption_master_key);
|
||||||
|
|||||||
Reference in New Issue
Block a user