Embedded script class for cryptographic utilities such as calculation and verification of file hashes. Commands of this embedded script can be run from the main application.
More...
|
| AppEmbeddedCryptoIGShell (string masterCommand) |
| Constructs a new embedded application script object. More...
|
|
override void | Script_AddCommands (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings) |
| Adds application commands to the application interpreter. More...
|
|
string | WrappedScriptAppBase (ILoadableScript wrappedScriptApplication, string wrappedCommand, string wrappedEmbeddedCommand, string[] arguments) |
| Generic wrapper for commandline application's commands. Runs the specified wrapped command installed on the specified commandline application. More...
|
|
virtual string | AppTestCrypto (string[] arguments) |
| Tests that the current embedded aplication script is functional; prints commans's argument and other data. More...
|
|
| AppBase () |
|
virtual string | AppCustom (string[] arguments) |
| Runs one of the custom embedded applications. More...
|
|
void | Script_AddCommands1 (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings) |
| Adds commands to the internal interpreter. More...
|
|
| ScriptAppBase () |
|
virtual string | RunFileByScript (string filePath) |
| Runs all commands that are written in a file. Each line of a file is interpreted as a single command, consisting of command name followed by arguments. More...
|
|
virtual void | ReportError (string errorString) |
|
new string | AppMyTest (string[] arguments) |
| Test action. More...
|
|
override string | AppCustomApp (string[] arguments) |
| Custom application. More...
|
|
virtual string | AppNumerics (string[] arguments) |
| Runs one of the numerics - related embedded applications. More...
|
|
virtual string | AppFile (string[] arguments) |
| Runs one of the file system - related embedded applications. More...
|
|
virtual string | AppCrypto (string[] arguments) |
| Runs one of the cryptography - related embedded applications. More...
|
|
virtual string | AppSystem (string[] arguments) |
| Runs one of the file system - related embedded applications. More...
|
|
virtual string | AppAssembly (string[] arguments) |
| Runs one of the file assembly - related embedded applications. More...
|
|
virtual string | AppProcess (string[] arguments) |
| Runs one of the process - related embedded applications. More...
|
|
virtual string | AppDataStructures (string[] arguments) |
| Runs one of the data structures demo - related embedded applications. More...
|
|
| LoadableScriptSpecialFunctionBase () |
|
override void | Script_AddCommand (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings, string commandName, Script_CommandDelegate command, string helpString) |
| Adds a new internal script command under specified name to the internal interpreter of the current script object. More...
|
|
string | AppMyTest (string[] arguments) |
| Test action. More...
|
|
| LoadableScriptBase () |
| Argument-less constructor. If argument-less constructor is called then initialization is not performed and will be performed later. More...
|
|
string | Run (string[] arguments) |
| Performs the action of this object. Override this in derived classes! More...
|
|
void | Initialize (string[] arguments) |
| Initializes the object. If not called explicitly, this method is automatically called at the first call to the Run method. More...
|
|
virtual string | Script_DefaultInitialize (string[] arguments) |
| Default initialization method for scripts. More...
|
|
virtual string | Script_DefaultRun (string[] arguments) |
| Default run method for the script. Can be used when only installed commands are run by hte script. More...
|
|
virtual
ICommandLineApplicationInterpreter | Script_CreateInterpreterWithoutCommands () |
| Creates and returns an interpreter that can be used as script's internal interpreter for running script's commands. More...
|
|
delegate string | Script_CommandDelegate (string[] args) |
| Delegate for commands that are installed on script's internal interpreter (property Script_Interpreter). More...
|
|
void | Script_AddCommand (string commandName, Script_CommandDelegate command, string helpString) |
| Adds a new internal script command under specified name to the internal interpreter of the current script object. More...
|
|
string | Script_GetHelpString (string scriptCommandName) |
| Returns help string for internal script command with specified name, or null if help string is not installed for such a command. More...
|
|
void | Script_PrintCommandsHelp () |
| Prits help for the installed internal commands of the script. More...
|
|
virtual bool | Script_ContainsCommand (string commandName) |
| Returns true if the internal script's interpreter contains a command with specified name, false otherwise. More...
|
|
virtual bool | Script_ContainsScriptCommand (string commandName) |
| Returns true if the specified command is script command (i.e. its first argument is command-name and it is run through the Script_CommandAdapter object). More...
|
|
virtual void | Script_RemoveCommand (string commandName) |
| Removes the specified internal script command from the internal interpreter of the current scripting object. More...
|
|
virtual void | Script_RemoveAllCommands () |
| Removes ALL internal script commands from the internal interpreter of the current scripting object. More...
|
|
string | Script_Run (string[] arguments) |
| Runs internal script command. More...
|
|
string | Script_Run (string commandName, params string[] otherArguments) |
| Runs internal script command. More...
|
|
virtual void | Script_PrintArguments (string messageString, string[] arguments) |
| Prints the specified array of string arguments (usually passed as command-line arguments). More...
|
|
|
virtual string | AppHashForm (string[] args) |
| Executes embedded application - launches a windows form for calculation and verification of various hashRet values of a file. More...
|
|
virtual string | AppGetFileHash (string[] args) |
| Executes embedded application - calculates various hashes of the specified file and eventually writes them to a file. More...
|
|
virtual string | AppCheckSum (string[] args) |
| Executes embedded application - calculation/verification of file or string checksums. More...
|
|
override void | InitAppFile () |
| Initializes commands for file system related utilities (embedded applications). More...
|
|
virtual string | FileFunctionTestArguments (string appName, string[] args) |
| Executes embedded application that just prints arguments passed to the application to a console. More...
|
|
void | AddCustomCommand (string appName, CommandMethod appMethod, string appHelp) |
| Adds a new file system - related embedded application's command (added as sub-command of the base command named ScriptAppBase.ConstFile). More...
|
|
virtual string | CustomFunctionPrintArguments (string appName, string[] args) |
| Executes embedded application - writing to the console information about file events for the specified file or directory. More...
|
|
virtual void | InitAppCustom () |
| Initializes commands for file system related utilities (embedded applications). More...
|
|
virtual string | RunAppCustom (string[] args) |
| Runs a file system related utility (embedded application) according to arguments. More...
|
|
virtual void | InitAppDataStructuresPartial () |
| Initializes commands for form demo related utilities (embedded applications). More...
|
|
virtual string | DataStructuresFunctionTestCsvApp (string appName, string[] args) |
| Executes embedded application - demo application for demonstration of work with CSVs. More...
|
|
virtual string | DataStructuresFunctionTestCsvWriteDefinitionAndData (string appName, string[] args) |
| Executes embedded application - test of writing sampled data definition and data in CSV format. More...
|
|
virtual string | DataStructuresFunctionTestCsvReadDefinitionAndData (string appName, string[] appArgs) |
| Executes embedded application - test of writing sampled data definition and data in CSV format. More...
|
|
override void | InitializeThis (string[] arguments) |
| Initializes the current object. More...
|
|
override string | RunThis (string[] arguments) |
| Runs action of the current object. More...
|
|
void | Script_AddRunFileByScriptCommand (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings) |
| Adds the Run comand to the script's interpreter and performs the necessary additional tasks. More...
|
|
void | Script_RemoveRunFileByScriptCommand (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings) |
| Removes the Run comand from the script's interpreter and performs the necessary accompanying tasks. More...
|
|
virtual string | AppRunFileByScript (string[] args) |
| Execution method that Runs the specified command file by the script's interpreter. More...
|
|
void | AddNumericsCommand (string appName, CommandMethod appMethod, string appHelp) |
| Adds a new numerics - related embedded application's command (added as sub-command of the base command named ConstNumerics). More...
|
|
virtual string | NumericsFunctionScriptScalarFuncitons (string appName, string[] args) |
| Executes embedded application - testing of definition of scalar function objects through expressions. More...
|
|
virtual void | InitAppNumerics () |
| Initializes commands for numerics related utilities (embedded applications). More...
|
|
virtual string | RunAppNumerics (string[] args) |
| Runs a numerics related utility (embedded application) according to arguments. More...
|
|
void | AddFileCommand (string appName, CommandMethod appMethod, string appHelp) |
| Adds a new file system - related embedded application's command (added as sub-command of the base command named ConstFile). More...
|
|
virtual string | FileFunctionLogEvents (string appName, string[] args) |
| Executes embedded application - writing to the console information about file events for the specified file or directory. More...
|
|
virtual string | FileFunctionWaitCreation (string appName, string[] args) |
| Executes embedded application - waiting for creation of the specified file. More...
|
|
virtual string | FileFunctionRelativePath (string appName, string[] args) |
| Executes embedded application - writing to the console information about file events for the specified file or directory. More...
|
|
virtual string | FileFunctionStandardPath (string appName, string[] args) |
| Executes embedded application - writing to the console information about file events for the specified file or directory. More...
|
|
virtual string | FileFunctionCurrentDirectory (string appName, string[] args) |
| Executes embedded application - writing to the console information about file events for the specified file or directory. More...
|
|
virtual string | RunAppFile (string[] args) |
| Runs a file system related utility (embedded application) according to arguments. More...
|
|
void | AddCryptoCommand (string appName, CommandMethod appMethod, string appHelp) |
| Adds a new cryptography - related embedded application's command (added as sub-command of the base command named ConstCrypto1). More...
|
|
virtual string | CryptoFunctionGetFileHash (string appName, string[] args) |
| Executes embedded application - calculation of various hashRet values of a file. More...
|
|
virtual string | CryptoFunctionCheckSum (string appName, string[] args) |
| Executes embedded application - calculation AND verification of various hashRet values of a file or a string. More...
|
|
virtual string | CryptoFunctionEncryptBasic (string appName, string[] args) |
| Executes embedded application - symmetric encryption of files, strings, or byte fields by using the BASIC class of methods. More...
|
|
virtual string | CryptoFunctionDecryptBasic (string appName, string[] args) |
| Executes embedded application - symmetric decryption of files, strings, or byte fields by using the BASIC class of methods. More...
|
|
virtual string | CryptoFunctionEncryptPlain (string appName, string[] args) |
| Executes embedded application - symmetric encryption of files, strings, or byte fields by using the PLAIN class of methods. More...
|
|
virtual string | CryptoFunctionDecryptPlain (string appName, string[] args) |
| Executes embedded application - symmetric decryption of files, strings, or byte fields by using the PLAIN class of methods. More...
|
|
virtual string | CryptoFunctionGetKey (string appName, string[] args) |
| Executes embedded application - generation of secret keys for encryption. More...
|
|
virtual string | CryptoFunctionGetInitializationVector (string appName, string[] args) |
| Executes embedded application - generation of initialization vectors for encryption. More...
|
|
virtual string | CryptoFunctionGetSalt (string appName, string[] args) |
| Executes embedded application - generation of salts for encryption. More...
|
|
virtual string | CryptoFunctionTimeKeyGeneration (string appName, string[] args) |
| Executes embedded application - measuring time of password generaton utilities. More...
|
|
virtual string | CryptoFunctionConvert (string appName, string[] args) |
| Executes embedded application - conversion between different representations of data. More...
|
|
virtual string | CryptoFunctionAsymKeyInfo (string appName, string[] args) |
| Executes embedded application - printing infomration about the specified asymmetric key. More...
|
|
virtual string | CryptoFunctionCertStoreInfo (string appName, string[] args) |
| Executes embedded application - printing infomration about the specified certificate store. More...
|
|
virtual string | CryptoFunctionCertInfo (string appName, string[] args) |
| Executes embedded application - printing infomration about the specified certificate. More...
|
|
virtual string | CryptoFunctionAddCertificate (string appName, string[] args) |
| Executes embedded application - adding the specified certificate to the specified certificate store. More...
|
|
virtual string | CryptoFunctionRemoveCertificate (string appName, string[] args) |
| Executes embedded application - removing the certificate from certificate store. More...
|
|
virtual string | CryptoFunctionAsymTest (string appName, string[] args) |
| Executes embedded application - test of asymmetric encrypton. More...
|
|
virtual string | CryptoFunctionCleanFiles (string appName, string[] args) |
| Executes embedded application - conversion between different representations of data. More...
|
|
virtual void | InitAppCrypto () |
| Initializes commands for cryptography related utilities (embedded applications). More...
|
|
virtual string | RunAppCrypto (string[] args) |
| Runs a cryptography related utility (embedded application) according to arguments. More...
|
|
virtual string | CryptoFunctionGetFileHash_OLD_TO_DELETE (string appName, string[] args) |
| Executes embedded application - calculation of various hashRet values of a file. More...
|
|
virtual string | CryptoFunctionCheckSum_OLD_TO_DELETE_LATER (string appName, string[] args) |
| Executes embedded application - calculation AND verification of various hashRet values of a file. More...
|
|
virtual string | CryptoFunctionTimeKeyGeneration_OLD_TO_DELETE_LATER (string appName, string[] args) |
| Executes embedded application - symmetric encryption of files, strings, or byte fields. More...
|
|
virtual string | CryptoFunctionConvert_OLD_TO_DELETE (string appName, string[] args) |
| Executes embedded application - symmetric encryption of files, strings, or byte fields. More...
|
|
void | AddSystemCommand (string appName, CommandMethod appMethod, string appHelp) |
| Adds a new system - related embedded application's command (added as sub-command of the base command named ConstSystem). More...
|
|
virtual string | SystemFunctionRuntimeVersion (string appName, string[] args) |
| Executes embedded application - writing to the console and returning version of the runtime that application runs on. More...
|
|
virtual string | SystemFunctionComputerName (string appName, string[] args) |
| Executes embedded application - writing to the console and returning the current computer name. More...
|
|
virtual string | SystemFunctionDomainName (string appName, string[] args) |
| Executes embedded application - writing to the console and returning the current domain name. More...
|
|
virtual string | SystemFunctionIpAddress (string appName, string[] args) |
| Executes embedded application - writing to the console and returning the current IP address. More...
|
|
virtual string | SystemFunctionUserName (string appName, string[] args) |
| Executes embedded application - writing to the console and returning the current user name. More...
|
|
virtual string | SystemFunctionSystemInfo (string appName, string[] args) |
| Executes embedded application - writing to the console and returning the system info. More...
|
|
virtual string | SystemFunctionMACAddress (string appName, string[] args) |
| Executes embedded application - writing to the console and returning the current domain name. More...
|
|
virtual void | InitAppSystem () |
| Initializes commands for file system related utilities (embedded applications). More...
|
|
virtual string | RunAppSystem (string[] args) |
| Runs a file system related utility (embedded application) according to arguments. More...
|
|
void | AddAssemblyCommand (string appName, CommandMethod appMethod, string appHelp) |
| Adds a new assembly - related embedded application's command (added as sub-command of the base command named ConstSystem). More...
|
|
virtual string | AssemblyFunctionInfo (string appName, string[] args) |
| Executes embedded application - writing to the console information about the specified assembly. More...
|
|
virtual string | AssemblyFunctionResourcesEmbedded (string appName, string[] args) |
| Executes embedded application - writing to the console information about the specified assembly's embedded resources. More...
|
|
virtual string | AssemblyFunctionResourcesResx (string appName, string[] args) |
| Executes embedded application - writing to the console information about the specified assembly's resources included through .resx files. More...
|
|
virtual string | AssemblyFunctionResources (string appName, string[] args) |
| Executes embedded application - writing to the console information about the specified assembly's resources. More...
|
|
virtual string | AssemblyFunctionResources (string appName, string[] args, bool includeEmbedded, bool includeResx) |
| Executes embedded application - writing to the console information about the specified assembly's resources. More...
|
|
virtual string | AssemblyFunctionReferenced (string appName, string[] args) |
| Executes embedded application - writing to the console list of referenced assemblies. More...
|
|
virtual string | AssemblyFunctionLoaded (string appName, string[] args) |
| Executes embedded application - writing to the console list of loaded assemblies. More...
|
|
virtual string | AssemblyFunctionLoadAssemblies (string appName, string[] args) |
| Executes embedded application - loading the specified assemblies to the application domain. More...
|
|
virtual string | AssemblyFunctionInfoLoadAssemblies (string appName, string[] args) |
| Executes embedded application - loading the specified assemblies for inspection only (can not be executed). More...
|
|
virtual string | AssemblyFunctionLoadAssemblies (int outputLevel, bool reflectionOnly, string appName, string[] args) |
| Executes embedded application - loading the specified assemblies to the application domain. More...
|
|
virtual void | InitAppAssembly () |
| Initializes commands for assembly related utilities (embedded applications). More...
|
|
virtual string | RunAppAssembly (string[] args) |
| Runs a file assembly related utility (embedded application) according to arguments. More...
|
|
void | AddProcessCommand (string appName, CommandMethod appMethod, string appHelp) |
| Adds a new process - related embedded application's command (added as sub-command of the base command named ConstProcess). More...
|
|
virtual string | ProcessFunctionListProcesses (string appName, string[] args) |
| Embedded application - lists all processes that satisfy the specified conditions. More...
|
|
virtual string | ProcessFunctionListApplications (string appName, string[] args) |
| Embedded application. Lists all running applications sarisfyin specified conditions. More...
|
|
virtual string | ProcessFunctionListApplicationsByWindow (string appName, string[] args) |
| Embedded application. Lists all running applications sarisfyin specified conditions. More...
|
|
virtual string | ProcessFunctionKillProcesses (string appName, string[] args) |
| Embedded application - kills all processes that satisfy the specified conditions. More...
|
|
virtual string | ProcessFunctionKillApplications (string appName, string[] args) |
| Embedded application. Kills all running applications sarisfyin specified conditions. More...
|
|
virtual string | ProcessFunctionKillApplicationsByWindow (string appName, string[] args) |
| Embedded application. Kills all running applications sarisfyin specified conditions. More...
|
|
virtual void | InitAppProcess () |
| Initializes commands for process - related utilities (embedded applications). More...
|
|
virtual string | RunAppProcess (string[] args) |
| Runs a process - related utility (embedded application) according to arguments. More...
|
|
void | AddDataStructuresCommand (string appName, CommandMethod appMethod, string appHelp) |
| Adds a new data structure- related embedded demo application's command (added as a sub-command of the base command named ConstDataStructures). More...
|
|
virtual void | InitAppDataStructures () |
| Initializes commands for form demo related utilities (embedded applications). More...
|
|
virtual string | RunAppDataStructures (string[] args) |
| Runs a data structures demo - related utility (embedded application) according to arguments. More...
|
|
override void | InitializeThis (string[] arguments) |
| Initializes the current object. More...
|
|
override string | RunThis (string[] arguments) |
| Runs action of the current object. More...
|
|
delegate string | CommandMethod (string commandName, string[] args) |
| Delegate for internal command methods. More...
|
|
ICommandLineApplicationInterpreter | Script_CreateInterpreter () |
| Creates and returns an interpreter that can be used as script's internal interpreter for running script's commands. More...
|
|
virtual string | Script_CommandHelp (string[] arguments) |
| Prints help. More...
|
|
virtual string | Script_CommandTestScript (string[] arguments) |
| Prints help. More...
|
|
Embedded script class for cryptographic utilities such as calculation and verification of file hashes. Commands of this embedded script can be run from the main application.
Currently, the set of cryptographic utilities provided is limited to file verification, tools, i.e. calculation and verification of file hashes (checksums).
This script class has multiple roles.
It wraps the relevant embedded commands of base script classes such as AppBase such that these commands can be called in a more convenient way. For example, calling such commands in the current script does not require stating the script class name (which usually does not have any connection with the function) and then the containing command name and then the nested command name, but only the command name is called. Wrapping of these commands does not involve reimplementation of the underlying methods, as existent methods on the existent scripts are used.
This script also implements some commands implemeted in the AppBase class. In this way, we do not to link the extended project (that includes that class but also includes graphics and other redundand stuff), but we only need to include the IGLibForms project. This is especially important in the case of the small shell project that only includes the cryptographic utilities.
This script is uesd in two locations: in a small shell project devoted to cryptographic utilities, and in the main script class of the IGShell program where it serves as embedded application providng some cryptographic utilities (file checksums etc.).
$A Igor Jul10;