FileModule
Less than 1 minute
FileModule
Class FileModule
Console module for working with files and encryption. Provides commands to encrypt, decrypt, check, and view files.
Methods
configure
Configures the module by adding file-related commands and arguments.
protected configure(): voidencryptFile
Encrypts a file using the Hazaar encryption system.
protected encryptFile(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | The input interface for command arguments. |
$output | Output | The output interface for writing messages. |
decryptFile
Decrypts a file using the Hazaar encryption system.
protected decryptFile(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | The input interface for command arguments. |
$output | Output | The output interface for writing messages. |
checkFileEncrypted
Checks if a file is encrypted.
protected checkFileEncrypted(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | The input interface for command arguments. |
$output | Output | The output interface for writing messages. |
viewEncryptedFile
Views the contents of an encrypted file.
protected viewEncryptedFile(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | The input interface for command arguments. |
$output | Output | The output interface for writing messages. |
Generated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:27 +0000