Skip to content

Commit

Permalink
update password hash generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Surkov committed May 17, 2023
1 parent 63e1ed2 commit 65cebc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "symbiotic/btc-puzzle",
"version": "1.0.3",
"version": "1.0.4",
"require": {
"php": ">=8.0",
"ext-gmp": "*"
Expand Down
2 changes: 1 addition & 1 deletion src/SignatureGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function generateSectorSignature(string $token, Sector $sector, int $user
private function getPassword(string $sectorHash, string $privateHex): string
{
$password = hash('sha256', $sectorHash . $privateHex);
$quantity = rand(5, 50);
$quantity = rand(3, 10);
for ($i = 0; $i < $quantity; $i++) {
$password = hash('sha256', $password);
}
Expand Down

0 comments on commit 65cebc3

Please sign in to comment.