File tree Expand file tree Collapse file tree
src/SafeCrypt.Lib/Encryption/AesEncryption/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
3- using System . ComponentModel . DataAnnotations ;
4- using System . Text ;
5-
6- namespace SafeCrypt . Models
1+ namespace SafeCrypt . Models
72{
8- public class DecryptionParameters
3+ public class DecryptionParameters : BaseAesEncryptionParameters
94 {
10- /// <summary>
11- /// Gets or sets the data to be decrypted.
12- /// </summary>
13- [ Required ]
14- public string DataToDecrypt { get ; set ; }
15-
16- /// <summary>
17- /// Gets or sets the secret key used for decryption.
18- /// </summary>
19- [ Required ]
20- public string SecretKey { get ; set ; }
21-
22- /// <summary>
23- /// Gets or sets the initialization vector (IV) used for decryption.
24- /// </summary>
25- [ Required ]
26- public string IV { get ; set ; }
275 }
286}
Original file line number Diff line number Diff line change 1- using System . ComponentModel . DataAnnotations ;
2-
3-
4- namespace SafeCrypt . Models
1+ namespace SafeCrypt . Models
52{
6- public class EncryptionParameters
3+ public class EncryptionParameters : BaseAesEncryptionParameters
74 {
8- /// <summary>
9- /// Gets or sets the data to be encrypted.
10- /// </summary>
11- [ Required ]
12- public string DataToEncrypt { get ; set ; }
13-
14- /// <summary>
15- /// Gets or sets the secret key used for encryption.
16- /// </summary>
17- [ Required ]
18- public string SecretKey { get ; set ; }
19-
20- /// <summary>
21- /// Gets or sets the initialization vector (IV) used for encryption.
22- /// </summary>
23- [ Required ]
24- public string IV { get ; set ; }
255 }
266
27- public class StringEncryptionParameters
7+ public class StringEncryptionParameters : BaseAesEncryptionParameters
288 {
29- /// <summary>
30- /// Gets or sets the data to be encrypted.
31- /// </summary>
32- [ Required ]
33- public string Data { get ; set ; }
34-
35- /// <summary>
36- /// Gets or sets the secret key used for encryption.
37- /// </summary>
38- [ Required ]
39- public string SecretKey { get ; set ; }
40-
41- /// <summary>
42- /// Gets or sets the initialization vector (IV) used for encryption.
43- /// </summary>
44- [ Required ]
45- public string IV { get ; set ; }
469 }
47-
4810}
You can’t perform that action at this time.
0 commit comments