Skip to content

Commit b25e788

Browse files
committed
Change access level of _encryptPrivateKey and _decryptPrivateKey methods from protected to private
1 parent 5954d29 commit b25e788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RSAParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function generateKeys(?string $passphrase = null, ?array $configArgs = nu
4545
return $this;
4646
}
4747

48-
protected function _encryptPrivateKey(string $privateKey, string $salt = 'salt'): string
48+
private function _encryptPrivateKey(string $privateKey, string $salt = 'salt'): string
4949
{
5050
$aes = new AESCryptoServiceProvider();
5151
$aes->generateIV();
@@ -56,7 +56,7 @@ protected function _encryptPrivateKey(string $privateKey, string $salt = 'salt')
5656
return $aes->encrypt($privateKey);
5757
}
5858

59-
protected function _decryptPrivateKey(string $privateKey, string $salt = 'salt'): string
59+
private function _decryptPrivateKey(string $privateKey, string $salt = 'salt'): string
6060
{
6161
$aes = new AESCryptoServiceProvider();
6262
$k = new CryptoKey();

0 commit comments

Comments
 (0)