FileModule
Less than 1 minute
FileModule
Class FileModule.
class FileModule extends \Hazaar\Console\Modules\ModuleConsole 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 Tue, 21 Apr 2026 04:00:25 +0000