From a882ee64fe1c5ed0b6596c4f5db41ce7aff209b8 Mon Sep 17 00:00:00 2001 From: Gustavo Meyer Date: Wed, 17 Jul 2024 16:12:29 -0700 Subject: [PATCH] Support phpseclib V3 --- composer.json | 2 +- src/Hyperwallet/Util/HyperwalletEncryption.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a687e7b9..d2e06c5f 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "php": ">=5.6.0", "ext-json": "*", "guzzlehttp/guzzle": "^6.2.1 || ^7.0.1", - "phpseclib/phpseclib": "^2.0.11", + "phpseclib/phpseclib": "^2.0.11 || ^3.0.0", "gree/jose": "^2.2.1" }, "autoload": { diff --git a/src/Hyperwallet/Util/HyperwalletEncryption.php b/src/Hyperwallet/Util/HyperwalletEncryption.php index 3cc5cbe6..80c9ef32 100644 --- a/src/Hyperwallet/Util/HyperwalletEncryption.php +++ b/src/Hyperwallet/Util/HyperwalletEncryption.php @@ -10,7 +10,7 @@ use Hyperwallet\Response\ErrorResponse; use Composer\Autoload\ClassLoader; use phpseclib\Crypt\RSA; -use phpseclib\Math\BigInteger; +use Phpseclib\Math\BigInteger; use phpseclib\Crypt\Hash; use JOSE_URLSafeBase64; use JOSE_JWS;