diff options
| author | winter | 2024-12-31 22:30:16 +0000 |
|---|---|---|
| committer | winter | 2024-12-31 22:31:26 +0000 |
| commit | 4cd7017da9a37e5b9f38c3f50dd1c904ea41cbcb (patch) | |
| tree | d77f1fd223dae44f40b22c9810aeba238733310d /misc/defaults_password_hash.php | |
| parent | 982e6213622bcb78a40d17f54cda27225a1d84b3 (diff) | |
implement user accounts and login
Diffstat (limited to 'misc/defaults_password_hash.php')
| -rw-r--r-- | misc/defaults_password_hash.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/defaults_password_hash.php b/misc/defaults_password_hash.php new file mode 100644 index 0000000..427179b --- /dev/null +++ b/misc/defaults_password_hash.php @@ -0,0 +1,5 @@ +<?php + +function defaults_password_hash(#[\SensitiveParameter] string $password) { + return password_hash($password, PASSWORD_ARGON2ID); +}
\ No newline at end of file |
