24 lines
423 B
PHP
24 lines
423 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Service\Auth;
|
|
|
|
use MintyPHP\Support\Crypto;
|
|
|
|
class AuthCryptoGateway
|
|
{
|
|
public function isConfigured(): bool
|
|
{
|
|
return Crypto::isConfigured();
|
|
}
|
|
|
|
public function encryptString(string $value): string
|
|
{
|
|
return Crypto::encryptString($value);
|
|
}
|
|
|
|
public function decryptString(string $value): string
|
|
{
|
|
return Crypto::decryptString($value);
|
|
}
|
|
}
|