Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
36
src/Framework/Encryption/EncryptionInterface.php
Normal file
36
src/Framework/Encryption/EncryptionInterface.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Encryption;
|
||||
|
||||
/**
|
||||
* Interface for encryption strategies
|
||||
*/
|
||||
interface EncryptionInterface
|
||||
{
|
||||
/**
|
||||
* Encrypt data with optional prefix/suffix markers
|
||||
*/
|
||||
public function encrypt(string $data): string;
|
||||
|
||||
/**
|
||||
* Decrypt data, automatically handling markers
|
||||
*/
|
||||
public function decrypt(string $encryptedData): string;
|
||||
|
||||
/**
|
||||
* Check if data appears to be encrypted
|
||||
*/
|
||||
public function isEncrypted(string $data): bool;
|
||||
|
||||
/**
|
||||
* Get the encryption method identifier
|
||||
*/
|
||||
public function getMethod(): string;
|
||||
|
||||
/**
|
||||
* Validate if encryption key is suitable for this method
|
||||
*/
|
||||
public function validateKey(string $key): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user