Skip to content

Commit c10203a

Browse files
committed
feat: add RsaEncryptionResult
1 parent 4b02849 commit c10203a

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace SafeCrypt.RsaEncryption.Models
6+
{
7+
public class RsaEncryptionResult
8+
{
9+
/// <summary>
10+
/// Gets or sets the encrypted data.
11+
/// </summary>
12+
public byte[] EncryptedData { get; set; }
13+
14+
/// <summary>
15+
/// Gets or sets the list of errors encountered during encryption.
16+
/// </summary>
17+
public List<string> Errors { get; set; }
18+
19+
/// <summary>
20+
/// Gets or sets the public key used for encryption.
21+
/// </summary>
22+
public string PublicKey { get; set; }
23+
24+
/// <summary>
25+
/// Gets or sets the private key used for encryption.
26+
/// </summary>
27+
public string PrivateKey { get; set; }
28+
29+
/// <summary>
30+
/// Initializes a new instance of the <see cref="RsaEncryptionResult"/> class.
31+
/// </summary>
32+
public RsaEncryptionResult()
33+
{
34+
Errors = new List<string>();
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)