File tree Expand file tree Collapse file tree
src/Encryption/AesEncryption/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System . ComponentModel . DataAnnotations ;
1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . ComponentModel . DataAnnotations ;
4+ using System . Text ;
25
36namespace 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 {
You can’t perform that action at this time.
0 commit comments