Skip to content

Commit a409052

Browse files
committed
add src folder into project
1 parent 37f3cb3 commit a409052

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

Encrypt/AesEncryption/AesEncryption.cs renamed to src/Encryption/AesEncryption/AesEncryption.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.Text;
33
using System.Security.Cryptography;
4+
using SafeCrypt.src.Helpers;
45

5-
namespace SafeCrypt
6+
namespace SafeCrypt.src.Encrypt.AesEncryption
67
{
78
public class AesEncryption : BaseAesEncryption
89
{
@@ -116,7 +117,7 @@ private void NullChecks(string data, string secretKey)
116117

117118
if (secretKey == null || secretKey.Length <= 0)
118119
throw new ArgumentNullException(nameof(secretKey));
119-
}
120+
}
120121
}
121122

122123
public class AesEncryptionData

Encrypt/AesEncryption/BaseAesEncryption.cs renamed to src/Encryption/AesEncryption/BaseAesEncryption.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.IO;
33
using System.Security.Cryptography;
44

5-
namespace SafeCrypt
5+
namespace SafeCrypt.src.Encrypt.AesEncryption
66
{
77
public class BaseAesEncryption
88
{
@@ -56,10 +56,10 @@ public static byte[] DecryptAES(byte[] encryptedData, byte[] key, byte[] iv)
5656
}
5757
}
5858

59-
// Method to generate a random byte array of given length
60-
// Used to get the IV
61-
// Generate a random 16-byte IV for AES in CBC mode
62-
public static byte[] GenerateRandomBytes(int length)
59+
// Method to generate a random byte array of given length
60+
// Used to get the IV
61+
// Generate a random 16-byte IV for AES in CBC mode
62+
public static byte[] GenerateRandomBytes(int length)
6363
{
6464
byte[] randomBytes = new byte[length];
6565
using (RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider())
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Text;
44

5-
namespace SafeCrypt
5+
namespace SafeCrypt.src.Enums
66
{
77
public enum ReturnType
88
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.IO;
44
using System.Text;
55

6-
namespace SafeCrypt
6+
namespace SafeCrypt.src.Helpers
77
{
88
public static class Converters
99
{

0 commit comments

Comments
 (0)