class PYXIS_ENCRYPTER_APP
Command line interface to PYXIS_ENCRYPTER which encrypts a file using AES cryptography
Usage:
el_toolkit -pyxis_encrypt -in <input-name> -out <output-name>
If -out is not specified, it outputs the file as <input-name>.aes
note
description: "[
Command line interface to ${PYXIS_ENCRYPTER} which encrypts a file using AES cryptography
Usage:
el_toolkit -pyxis_encrypt -in <input-name> -out <output-name>
If `-out' is not specified, it outputs the file as `<input-name>.aes'
]"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2024-01-20 19:18:27 GMT (Saturday 20th January 2024)"
revision: "20"
class
PYXIS_ENCRYPTER_APP
inherit
EL_COMMAND_LINE_APPLICATION [PYXIS_ENCRYPTER]
rename
command as pyxis_encrypter
redefine
Option_name
end
EL_MODULE_USER_INPUT
create
make
feature {NONE} -- Implementation
argument_specs: ARRAY [EL_COMMAND_ARGUMENT]
do
Result := <<
required_argument ("in", "Input file path", << file_must_exist >>),
optional_argument ("out", "Output file path", No_checks)
>>
end
default_make: PROCEDURE [like pyxis_encrypter]
do
Result := agent {like pyxis_encrypter}.make ("", "", aes_encrypter)
end
feature {NONE} -- Internal attributes
aes_encrypter: EL_AES_ENCRYPTER
do
create Result.make (User_input.line ("Enter pass phrase"), 256)
lio.put_new_line
end
feature {NONE} -- Constants
Option_name: STRING = "pyxis_encrypt"
end