Skip to content

Commit c378553

Browse files
committed
feat: set encryption property to string
1 parent 40615ef commit c378553

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

src/Encryption/AesEncryption/Models/EncryptionParameters.cs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
1-
using System.ComponentModel.DataAnnotations;
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel.DataAnnotations;
4+
using System.Text;
25

36
namespace SafeCrypt.src.Encryption.AesEncryption.Models
47
{
5-
/// <summary>
6-
/// Represents the parameters required for encryption.
7-
/// </summary>
8-
public class ByteEncryptionParameters
8+
public class EncryptionParameters
99
{
1010
/// <summary>
1111
/// Gets or sets the data to be encrypted.
1212
/// </summary>
1313
[Required]
14-
public byte[] Data { get; set; }
14+
public string DataToEncrypt { get; set; }
1515

1616
/// <summary>
1717
/// Gets or sets the secret key used for encryption.
1818
/// </summary>
1919
[Required]
20-
public byte[] SecretKey { get; set; }
20+
public string SecretKey { get; set; }
2121

2222
/// <summary>
2323
/// Gets or sets the initialization vector (IV) used for encryption.
2424
/// </summary>
2525
[Required]
26-
public byte[] IV { get; set; }
26+
public string IV { get; set; }
2727
}
28-
2928

3029
public class StringEncryptionParameters
3130
{

0 commit comments

Comments
 (0)