Skip to content

Commit 420e464

Browse files
committed
feat: add string encryption paramter class to encapsulate the iv, secret and data
1 parent dd20cf1 commit 420e464

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

src/Encryption/AesEncryption/Models/EncryptionParameters.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,25 @@ public class ByteEncryptionParameters
3030
}
3131

3232

33-
33+
public class StringEncryptionParameters
34+
{
35+
/// <summary>
36+
/// Gets or sets the data to be encrypted.
37+
/// </summary>
38+
[Required]
39+
public string Data { get; set; }
40+
41+
/// <summary>
42+
/// Gets or sets the secret key used for encryption.
43+
/// </summary>
44+
[Required]
45+
public string SecretKey { get; set; }
46+
47+
/// <summary>
48+
/// Gets or sets the initialization vector (IV) used for encryption.
49+
/// </summary>
50+
[Required]
51+
public string IV { get; set; }
52+
}
3453

3554
}

0 commit comments

Comments
 (0)