better keygen for masterkey on setup

This commit is contained in:
johnnyq 2022-12-29 18:29:14 -05:00
parent 6dab710b6b
commit cb6211526c
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ if(isset($_POST['add_user'])){
$password = password_hash($_POST['password'], PASSWORD_DEFAULT);
//Generate master encryption key
$site_encryption_master_key = keygen();
$site_encryption_master_key = bin2hex(random_bytes(8));
//Generate user specific key
$user_specific_encryption_ciphertext = setupFirstUserSpecificKey($_POST['password'], $site_encryption_master_key);