forked from jaysonragasa/MultiRDPClient.NET
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRijndaelHelper.cs
More file actions
23 lines (20 loc) · 882 Bytes
/
RijndaelHelper.cs
File metadata and controls
23 lines (20 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Text;
using RijndaelEncryptDecrypt;
public class RijndaelSettings
{
public static string PassPhrase = "4e7046087d6e8eefe1b41bddf8bde56c";
public static string SaltValue = "36ec281f88fb483b5726ccfc81bae6d9";
public static string HashAlgorithm = "SHA1";
public static int PasswordIterations = 2;
public static string InitVector = "@1B2c3D4e5F6g7H8";
public static int KeySize = 256;
public static string Encrypt(string PlainText)
{
return Rijndael.Encrypt(PlainText, PassPhrase, SaltValue, HashAlgorithm, PasswordIterations, InitVector, KeySize);
}
public static string Decrypt(string cipherText)
{
return Rijndael.Decrypt(cipherText, PassPhrase, SaltValue, HashAlgorithm, PasswordIterations, InitVector, KeySize);
}
}