LeKoala\Encrypt\EncryptedDBFile
Safe and encrypted content file Also make sure that files are not public assets! => use htaccess
Synopsis
class EncryptedDBFile
extends DataExtension
{
- // members
- protected static EncryptedFile $encryptionEngine;
- private static array $db = ;
- // methods
- public string getDecryptionLink()
- public boolean isEncrypted()
- public boolean updateEncryptionStatus()
- public void sendDecryptedFile()
- public bool encryptFileIfNeeded()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
Methods
public
- encryptFileIfNeeded() — Files are not encrypted automatically Call this method to encrypt them
- getDecryptionLink()
- isEncrypted() — Check if the actual file on the filesystem is encrypted You might also use the Encrypted field that should be accurate
- sendDecryptedFile() — Output file using regular php Does not send headers, see EncryptHelper::sendDecryptedFile
- updateEncryptionStatus()