Skip to content

Commit

Permalink
token and hash changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
AzadDevX committed Mar 19, 2024
1 parent 4b0a13e commit c0999d8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions phptest.php
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
<?php
// get 64

echo levenshtein("IncreaseSalari","Users");
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Connection extends Database {

public function __construct($class) {

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

$this->ProjectStartAt = microtime(1);
Expand Down
2 changes: 1 addition & 1 deletion src/Types/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
class Token extends Init {
public $SqlType = "VARCHAR";
public function InsertMe() {
return sha1(rand(1,999999) + time() + rand(1,999999));
return sha1(bin2hex(random_bytes(32)));
}
}

0 comments on commit c0999d8

Please sign in to comment.