Skip to content

Commit abe015a

Browse files
authored
Update I/O operations from C# to Lua scripts
1 parent 6f5d012 commit abe015a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ HashifyNET CLI is a professional command-line utility for computing various cryp
55

66
This CLI relies completely on the [HashifyNET](https://github.com/Deskasoft/HashifyNET) project to demonstrate its capabilities and provide a standardized method for computing multiple hash algorithms.
77

8-
HashifyNET CLI uses runtime C# scripts for I/O operations. This makes it as flexible as writing C# code without having to write a complete C# program. You are able to process any input and output with anything you desire without limitations.
8+
HashifyNET CLI uses [Lua](https://github.com/NLua/NLua) scripts for I/O operations. This makes it as flexible as writing C# code without having to write a complete C# program. You are able to process any input and output with anything you desire without limitations.
99

1010
We support command-line parameters, a file for specifying command-line parameters (preferably for long command lines and to avoid getting stuck by operating system limitations), and JSON config files to customize your own settings for the hash algorithms you want to use.
1111

@@ -58,12 +58,12 @@ Usage Scenario Examples
5858

5959
#### Random CRC32 hash for every call:
6060
```
61-
HashifyCLI -i "DateTimeOffset.UtcNow.Ticks.ToString()" -a "CRC" -cp "CRC=CRC32"
61+
HashifyCLI -i "tostring(DateTimeOffset.UtcNow.Ticks)" -a "CRC" -cp "CRC=CRC32"
6262
```
6363

6464
#### Validate Hash - Ensure the computed hash equals to pre-computed hash
6565
```
66-
HashifyCLI -i "ReadAllBytes('HashifyNET.dll')" -if "Input" -a "MD5" -of "AsHexString() != '18c5770ef035f90924b988f2a947362a' ? Fail('Hash Mismatch').ToString() : 'Hash Matches!'"
66+
HashifyCLI -i "ReadAllBytes('HashifyNET.dll')" -if "Input" -a "MD5" -of "AsHexString() ~= '18c5770ef035f90924b988f2a947362a' and Fail('Hash Mismatch').ToString() or 'Hash Matches!'"
6767
```
6868

6969
> [!NOTE]

0 commit comments

Comments
 (0)