Skip to content

Commit 4c07972

Browse files
author
Jayson Ragasa
committed
Rijndael cleanup
1 parent c1ce8a3 commit 4c07972

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

Database/RijndaelHelper.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
using RijndaelEncryptDecrypt;
22

33
public class RijndaelSettings
4-
{
5-
public static string PassPhrase = "4e7046087d6e8eefe1b41bddf8bde56c";
6-
public static string SaltValue = "36ec281f88fb483b5726ccfc81bae6d9";
7-
public static string HashAlgorithm = "SHA1";
8-
public static int PasswordIterations = 2;
9-
public static string InitVector = "@1B2c3D4e5F6g7H8";
10-
public static int KeySize = 256;
4+
{
5+
static string PassPhrase = "4e7046087d6e8eefe1b41bddf8bde56c";
6+
static string SaltValue = "36ec281f88fb483b5726ccfc81bae6d9";
7+
static string HashAlgorithm = "SHA1";
8+
static int PasswordIterations = 2;
9+
static string InitVector = "@1B2c3D4e5F6g7H8";
10+
static int KeySize = 256;
1111

12-
public static string Encrypt(string PlainText)
13-
{
14-
return Rijndael.Encrypt(PlainText, PassPhrase, SaltValue, HashAlgorithm, PasswordIterations, InitVector, KeySize);
15-
}
12+
public static string Encrypt(string PlainText)
13+
{
14+
return Rijndael.Encrypt(PlainText, PassPhrase, SaltValue, HashAlgorithm, PasswordIterations, InitVector, KeySize);
15+
}
1616

17-
public static string Decrypt(string cipherText)
18-
{
19-
return Rijndael.Decrypt(cipherText, PassPhrase, SaltValue, HashAlgorithm, PasswordIterations, InitVector, KeySize);
20-
}
17+
public static string Decrypt(string cipherText)
18+
{
19+
return Rijndael.Decrypt(cipherText, PassPhrase, SaltValue, HashAlgorithm, PasswordIterations, InitVector, KeySize);
2120
}
21+
}

0 commit comments

Comments
 (0)