11using RijndaelEncryptDecrypt ;
22
33public 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