Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from AlexECP/patch-1
Browse files Browse the repository at this point in the history
fix console command methods
  • Loading branch information
mcordingley authored Jan 19, 2018
2 parents 6a66477 + 0bd13dc commit abd8f8c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Console/GenerateSealingKeyPair.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class GenerateSealingKeyPair extends GenerateCommand
/**
* @return void
*/
public function fire()
public function handle()
{
$pair = sodium_crypto_box_keypair();

Expand Down
4 changes: 2 additions & 2 deletions src/Console/GenerateSharedAuthenticationKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class GenerateSharedAuthenticationKey extends GenerateCommand
/**
* @return void
*/
public function fire()
public function handle()
{
$key = Base64UrlSafe::encode(random_bytes(SODIUM_CRYPTO_AUTH_KEYBYTES));

Expand All @@ -40,4 +40,4 @@ public function fire()
//
}
}
}
}
4 changes: 2 additions & 2 deletions src/Console/GenerateSharedEncryptionKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class GenerateSharedEncryptionKey extends GenerateCommand
/**
* @return void
*/
public function fire()
public function handle()
{
$key = Base64UrlSafe::encode(random_bytes(SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES));

Expand All @@ -40,4 +40,4 @@ public function fire()
//
}
}
}
}
2 changes: 1 addition & 1 deletion src/Console/GenerateSigningKeyPair.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class GenerateSigningKeyPair extends GenerateCommand
/**
* @return void
*/
public function fire()
public function handle()
{
$pair = sodium_crypto_sign_keypair();

Expand Down

0 comments on commit abd8f8c

Please sign in to comment.