@@ -19,6 +19,9 @@ |
||
| 19 | 19 | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $message |
|
| 24 | + */ |
|
| 22 | 25 | function sign($message) { |
| 23 | 26 | return base64_encode(hash_hmac('sha256', $message, base64_decode($this->password), true)); |
| 24 | 27 | } |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | namespace Djunehor\Vtu\Concrete; |
| 5 | 5 | |
| 6 | 6 | |
| 7 | -use Djunehor\Vtu\Contracts\VtuServiceInterface; |
|
| 8 | 7 | use GuzzleHttp\Exception\ClientException; |
| 9 | 8 | use GuzzleHttp\Psr7\Request; |
| 10 | 9 | use Illuminate\Support\Str; |