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

Commit 1b95bc7

Browse files
committed
master - changed encryption methods privacy to public
1 parent 8c0e4ad commit 1b95bc7

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-
protected function aesDecrypt($val, $cypher = 'aes-128-ecb', $mySqlKey = true)
68+
public 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-
protected function aesEncrypt($val, $cypher = 'aes-128-ecb', $mySqlKey = true)
121+
public function aesEncrypt($val, $cypher = 'aes-128-ecb', $mySqlKey = true)
122122
{
123123
$secret = getenv('ENCRYPTION_KEY');
124124

0 commit comments

Comments
 (0)