aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/defaults_password_hash.php
diff options
context:
space:
mode:
authorwinter2024-12-31 22:30:16 +0000
committerwinter2024-12-31 22:31:26 +0000
commit4cd7017da9a37e5b9f38c3f50dd1c904ea41cbcb (patch)
treed77f1fd223dae44f40b22c9810aeba238733310d /misc/defaults_password_hash.php
parent982e6213622bcb78a40d17f54cda27225a1d84b3 (diff)
implement user accounts and login
Diffstat (limited to 'misc/defaults_password_hash.php')
-rw-r--r--misc/defaults_password_hash.php5
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