Skip to content
This repository was archived by the owner on Mar 2, 2023. It is now read-only.

Commit 8c0e4ad

Browse files
committed
master - changed encrypt decrypt methods to protected
1 parent ead959a commit 8c0e4ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Models/BaseModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getAttribute($key)
6565
*
6666
* @return false|string
6767
*/
68-
private function aesDecrypt($val, $cypher = 'aes-128-ecb', $mySqlKey = true)
68+
protected function aesDecrypt($val, $cypher = 'aes-128-ecb', $mySqlKey = true)
6969
{
7070
$secret = getenv('ENCRYPTION_KEY');
7171

@@ -118,7 +118,7 @@ public function setAttribute($key, $value)
118118
*
119119
* @return false|string
120120
*/
121-
private function aesEncrypt($val, $cypher = 'aes-128-ecb', $mySqlKey = true)
121+
protected function aesEncrypt($val, $cypher = 'aes-128-ecb', $mySqlKey = true)
122122
{
123123
$secret = getenv('ENCRYPTION_KEY');
124124

0 commit comments

Comments
 (0)