Skip to content

Commit c0999d8

Browse files
committed
token and hash changed.
1 parent 4b0a13e commit c0999d8

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

phptest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
<?php
2-
// get 64
3-
4-
echo levenshtein("IncreaseSalari","Users");

src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Connection extends Database {
1111

1212
public function __construct($class) {
1313

14-
$this->HashID = sha1(rand(1,99999) + rand(1,99999) + rand(1,999999));
14+
$this->HashID = sha1(bin2hex(random_bytes(32)));
1515
parent::$MyHash = $this->HashID;
1616

1717
$this->ProjectStartAt = microtime(1);

src/Types/Token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
class Token extends Init {
44
public $SqlType = "VARCHAR";
55
public function InsertMe() {
6-
return sha1(rand(1,999999) + time() + rand(1,999999));
6+
return sha1(bin2hex(random_bytes(32)));
77
}
88
}

0 commit comments

Comments
 (0)