@@ -57,6 +57,33 @@ The email to associate the key pair with.
57
57
[ System.Threading.Tasks.Task< ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 ' System.Threading.Tasks.Task`1 ') [ XfEncryptedKeyPair] ( Xecrets.Sdk.Models.XfEncryptedKeyPair.md ' Xecrets.Sdk.Models.XfEncryptedKeyPair ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 ' System.Threading.Tasks.Task`1 ')
58
58
The [ XfEncryptedKeyPair] ( Xecrets.Sdk.Models.XfEncryptedKeyPair.md ' Xecrets.Sdk.Models.XfEncryptedKeyPair ')
59
59
60
+ <a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptArmorAsync(Xecrets.Sdk.Models.XfCredentials,string) ' ></a >
61
+
62
+ ## IXfApi.DecryptArmorAsync(XfCredentials, string) Method
63
+
64
+ Decrypt an arbitrary string from ASCII armor format.
65
+
66
+ ``` csharp
67
+ System .Threading .Tasks .Task < (string text ,string fileName )> DecryptArmorAsync (Xecrets .Sdk .Models .XfCredentials credentials , string armor );
68
+ ```
69
+ #### Parameters
70
+
71
+ <a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptArmorAsync(Xecrets.Sdk.Models.XfCredentials,string).credentials ' ></a >
72
+
73
+ ` credentials ` [ XfCredentials] ( Xecrets.Sdk.Models.XfCredentials.md ' Xecrets.Sdk.Models.XfCredentials ')
74
+
75
+ One or more passwords to decrypt with.
76
+
77
+ <a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptArmorAsync(Xecrets.Sdk.Models.XfCredentials,string).armor ' ></a >
78
+
79
+ ` armor ` [ System.String] ( https://docs.microsoft.com/en-us/dotnet/api/System.String ' System.String ')
80
+
81
+ The ASCII armor string to decrypt.
82
+
83
+ #### Returns
84
+ [ System.Threading.Tasks.Task< ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 ' System.Threading.Tasks.Task`1 ') [ < ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple ' System.ValueTuple ') [ System.String] ( https://docs.microsoft.com/en-us/dotnet/api/System.String ' System.String ') [ ,] ( https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple ' System.ValueTuple ') [ System.String] ( https://docs.microsoft.com/en-us/dotnet/api/System.String ' System.String ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple ' System.ValueTuple ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 ' System.Threading.Tasks.Task`1 ')
85
+ The decrypted text, and the original file name embedded in the encrypted data.
86
+
60
87
<a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptFilesInPlaceAsync(Xecrets.Sdk.Models.XfCredentials,System.Collections.Generic.IEnumerable_Xecrets.Sdk.Models.XfFilePair_,System.Action_Xecrets.Sdk.Cli.CliMessage_) ' ></a >
61
88
62
89
## IXfApi.DecryptFilesInPlaceAsync(XfCredentials, IEnumerable<XfFilePair >, Action<CliMessage >) Method
@@ -134,7 +161,7 @@ System.Threading.Tasks.Task<string> DecryptStreamAsync(Xecrets.Sdk.Models.XfCred
134
161
135
162
` credentials ` [ XfCredentials] ( Xecrets.Sdk.Models.XfCredentials.md ' Xecrets.Sdk.Models.XfCredentials ')
136
163
137
- One or more passwords to Decrypt with.
164
+ One or more passwords to decrypt with.
138
165
139
166
<a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptStreamAsync(Xecrets.Sdk.Models.XfCredentials,System.IO.Stream,System.IO.Stream).cipherStream ' ></a >
140
167
@@ -153,33 +180,6 @@ A stream to write the clear text to.
153
180
A [ System.Threading.Tasks.Task] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task ' System.Threading.Tasks.Task ') to wait for and the original file name as a string, or an empty string if the
154
181
credentials were invalid.
155
182
156
- <a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptTextAsync(Xecrets.Sdk.Models.XfCredentials,string) ' ></a >
157
-
158
- ## IXfApi.DecryptTextAsync(XfCredentials, string) Method
159
-
160
- Decrypt an arbitrary string from ASCII armor format.
161
-
162
- ``` csharp
163
- System .Threading .Tasks .Task < (string text ,string fileName )> DecryptTextAsync (Xecrets .Sdk .Models .XfCredentials credentials , string text );
164
- ```
165
- #### Parameters
166
-
167
- <a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptTextAsync(Xecrets.Sdk.Models.XfCredentials,string).credentials ' ></a >
168
-
169
- ` credentials ` [ XfCredentials] ( Xecrets.Sdk.Models.XfCredentials.md ' Xecrets.Sdk.Models.XfCredentials ')
170
-
171
- One or more passwords to Decrypt with.
172
-
173
- <a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptTextAsync(Xecrets.Sdk.Models.XfCredentials,string).text ' ></a >
174
-
175
- ` text ` [ System.String] ( https://docs.microsoft.com/en-us/dotnet/api/System.String ' System.String ')
176
-
177
- The ASCII armor string to decrypt.
178
-
179
- #### Returns
180
- [ System.Threading.Tasks.Task< ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 ' System.Threading.Tasks.Task`1 ') [ < ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple ' System.ValueTuple ') [ System.String] ( https://docs.microsoft.com/en-us/dotnet/api/System.String ' System.String ') [ ,] ( https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple ' System.ValueTuple ') [ System.String] ( https://docs.microsoft.com/en-us/dotnet/api/System.String ' System.String ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple ' System.ValueTuple ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 ' System.Threading.Tasks.Task`1 ')
181
- The decrypted text, and the original file name embedded in the encrypted data.
182
-
183
183
<a name =' Xecrets.Sdk.Abstractions.IXfApi.DecryptToAndKeepFileAsync(Xecrets.Sdk.Models.XfCredentials,System.IO.FileInfo,System.IO.DirectoryInfo,System.Action_Xecrets.Sdk.Cli.CliMessage_) ' ></a >
184
184
185
185
## IXfApi.DecryptToAndKeepFileAsync(XfCredentials, FileInfo, DirectoryInfo, Action<CliMessage >) Method
@@ -242,7 +242,8 @@ The credentials to use when encrypting the files.
242
242
243
243
` overwrite ` [ System.Boolean] ( https://docs.microsoft.com/en-us/dotnet/api/System.Boolean ' System.Boolean ')
244
244
245
- Set to 'false' if overwriting the target should be disallowed, and instead use an alternate non-colliding name.
245
+ Set to 'false' if overwriting the target should be disallowed, and instead use an
246
+ alternate non-colliding name.
246
247
247
248
<a name =' Xecrets.Sdk.Abstractions.IXfApi.EncryptFilesAsync(Xecrets.Sdk.Models.XfCredentials,bool,bool,System.Collections.Generic.IEnumerable_Xecrets.Sdk.Models.XfFilePair_,System.Action_Xecrets.Sdk.Cli.CliMessage_).wipe ' ></a >
248
249
@@ -254,13 +255,15 @@ Set to 'true' to also wipe the original plain text.
254
255
255
256
` pairs ` [ System.Collections.Generic.IEnumerable< ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 ' System.Collections.Generic.IEnumerable`1 ') [ XfFilePair] ( Xecrets.Sdk.Models.XfFilePair.md ' Xecrets.Sdk.Models.XfFilePair ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 ' System.Collections.Generic.IEnumerable`1 ')
256
257
257
- File name pairs, providing source and target names as well as original name to include in the encrypted file.
258
+ File name pairs, providing source and target names as well as original name to include
259
+ in the encrypted file.
258
260
259
261
<a name =' Xecrets.Sdk.Abstractions.IXfApi.EncryptFilesAsync(Xecrets.Sdk.Models.XfCredentials,bool,bool,System.Collections.Generic.IEnumerable_Xecrets.Sdk.Models.XfFilePair_,System.Action_Xecrets.Sdk.Cli.CliMessage_).progress ' ></a >
260
262
261
263
` progress ` [ System.Action< ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 ' System.Action`1 ') [ CliMessage] ( Xecrets.Sdk.Cli.CliMessage.md ' Xecrets.Sdk.Cli.CliMessage ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 ' System.Action`1 ')
262
264
263
- An [ System.Action] ( https://docs.microsoft.com/en-us/dotnet/api/System.Action ' System.Action ') delegate that will be called reporting progress of the operation.
265
+ An [ System.Action] ( https://docs.microsoft.com/en-us/dotnet/api/System.Action ' System.Action ') delegate that will be called reporting progress of the
266
+ operation.
264
267
265
268
#### Returns
266
269
[ System.Threading.Tasks.Task< ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 ' System.Threading.Tasks.Task`1 ') [ System.Collections.Generic.IEnumerable< ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 ' System.Collections.Generic.IEnumerable`1 ') [ System.IO.FileInfo] ( https://docs.microsoft.com/en-us/dotnet/api/System.IO.FileInfo ' System.IO.FileInfo ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 ' System.Collections.Generic.IEnumerable`1 ') [ > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 ' System.Threading.Tasks.Task`1 ')
0 commit comments