1
+ <?php
2
+
3
+ /*
4
+ * This file is part of QLBase (https://github.com/nthnn/QLBase).
5
+ * Copyright 2024 - Nathanne Isip
6
+ *
7
+ * Permission is hereby granted, free of charge,
8
+ * to any person obtaining a copy of this software
9
+ * and associated documentation files (the “Software”),
10
+ * to deal in the Software without restriction,
11
+ * including without limitation the rights to use, copy,
12
+ * modify, merge, publish, distribute, sublicense, and/or
13
+ * sell copies of the Software, and to permit persons to
14
+ * whom the Software is furnished to do so, subject to
15
+ * the following conditions:
16
+ *
17
+ * The above copyright notice and this permission notice
18
+ * shall be included in all copies or substantial portions
19
+ * of the Software.
20
+ *
21
+ * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF
22
+ * ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
23
+ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
24
+ * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
25
+ * SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
26
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
29
+ * OR OTHER DEALINGS IN THE SOFTWARE.
30
+ */
31
+
32
+ function hashString ($ str ) {
33
+ return hash ('sha512 ' , $ str );
34
+ }
35
+
36
+ ?>
0 commit comments