for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Valkyrja Framework package.
*
* (c) Melech Mizrachi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Valkyrja\Crypt;
use stdClass;
use Valkyrja\Crypt\Contract\Crypt;
/**
* Class NullCrypt.
* @author Melech Mizrachi
class NullCrypt implements Crypt
{
* @inheritDoc
public function isValidEncryptedMessage(string $encrypted): bool
return true;
}
public function encrypt(string $message, string|null $key = null): string
return '';
public function encryptArray(array $array, string|null $key = null): string
public function encryptObject(object $object, string|null $key = null): string
public function decrypt(string $encrypted, string|null $key = null): string
public function decryptArray(string $encrypted, string|null $key = null): array
return [];
public function decryptObject(string $encrypted, string|null $key = null): object
return new stdClass();