-
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
71b52eb
commit 7c57a92
Showing
2 changed files
with
47 additions
and
8 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/DecryptOptions.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("Decrypt", HelpText = "Decrypt some data.")] | ||
public class DecryptOptions | ||
{ | ||
[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 secret to be decrypted.")] | ||
public string Data { get; set; } | ||
} |