added namespace SteamGuard
This commit is contained in:
parent
8c154ceef3
commit
1ff3980c98
2 changed files with 1095 additions and 1090 deletions
|
@ -8,6 +8,8 @@ using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
|
||||||
|
namespace SteamGuard
|
||||||
|
{
|
||||||
public class Manifest
|
public class Manifest
|
||||||
{
|
{
|
||||||
private const int PBKDF2_ITERATIONS = 50000; //Set to 50k to make program not unbearably slow. May increase in future.
|
private const int PBKDF2_ITERATIONS = 50000; //Set to 50k to make program not unbearably slow. May increase in future.
|
||||||
|
@ -517,7 +519,6 @@ public class Manifest
|
||||||
return Convert.ToBase64String(IV);
|
return Convert.ToBase64String(IV);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generates an encryption key derived using a password, a random salt, and specified number of rounds of PBKDF2
|
/// Generates an encryption key derived using a password, a random salt, and specified number of rounds of PBKDF2
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -540,3 +541,4 @@ public class Manifest
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -9,6 +9,8 @@ using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SteamGuard
|
||||||
|
{
|
||||||
public static class Program
|
public static class Program
|
||||||
{
|
{
|
||||||
public const string defaultSteamGuardPath = "~/maFiles";
|
public const string defaultSteamGuardPath = "~/maFiles";
|
||||||
|
@ -638,3 +640,4 @@ public static class Program
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue