Files
michaelschiemer/src/Framework/Encryption/EncryptionInterface.php
Michael Schiemer 55a330b223 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
2025-08-11 20:13:26 +02:00

37 lines
751 B
PHP

<?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;
}