-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgetUniqId.php
38 lines (27 loc) · 922 Bytes
/
getUniqId.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
function getUniqId()
{
$random = rand(9999,99999999999);
$random = md5($random);
$random = password_hash($random, PASSWORD_DEFAULT);
$random = password_hash($random, PASSWORD_DEFAULT);
$random2 = password_hash(rand(9999,99999999999)."akjiaojah9u abhgyagyaiab aagy8ag8g8a a8yvbaf aba8gag8a ", PASSWORD_DEFAULT);
$random = $random.$random2;
$milliseconds = round(microtime(true) * 1000);
$random2 = password_hash($milliseconds, PASSWORD_DEFAULT);
$random = $random.$random2;
return $random;
}
// echo getUniqId();
// $unid = getUniqId();
// $response = [];
// $response['sucess'] = $wasSignupSucess;
// // $response['credientials'] = [
// // 'name'=>$name,
// // 'username'=>$username,
// // 'email'=>$email,
// // 'loginToken'=>uniqid(),
// // ];
// $response['loginToken'] = $unid;
// echo json_encode($response);
?>