-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
215efff
commit 71b52eb
Showing
2 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/Security.Console/Infrastructure/Settings/EncryptOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using CommandLine; | ||
|
||
namespace Security.Console.Infrastructure.Settings; | ||
|
||
[Verb("Encrypt", HelpText = "Encrypt some data.")] | ||
public class EncryptOptions | ||
{ | ||
[Option('k', "Key", Required = true, HelpText = "Base 64 encoded key.")] | ||
public string Key { get; set; } | ||
|
||
[Option('i', "IV", Required = true, HelpText = "Base 64 encoded initialisation vector.")] | ||
public string Iv { get; set; } | ||
|
||
[Option('s', "Salt", Required = true, HelpText = "Base 64 encoded salt.")] | ||
public string Salt { get; set; } | ||
|
||
[Option('d', "Data", Required = true, HelpText = "Base 64 encoded data to be encrypted.")] | ||
public string Data { get; set; } | ||
} |