agent foundation
This commit is contained in:
18
lib/Service/Settings/SettingsCryptoGateway.php
Normal file
18
lib/Service/Settings/SettingsCryptoGateway.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Service\Settings;
|
||||
|
||||
use MintyPHP\Support\Crypto;
|
||||
|
||||
class SettingsCryptoGateway implements SettingsCryptoGatewayInterface
|
||||
{
|
||||
public function encryptString(string $value): string
|
||||
{
|
||||
return Crypto::encryptString($value);
|
||||
}
|
||||
|
||||
public function decryptString(string $value): string
|
||||
{
|
||||
return Crypto::decryptString($value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user