Skip to content

Instantly share code, notes, and snippets.

View panagis's full-sized avatar

Panagis Artoumas panagis

View GitHub Profile
@panagis
panagis / myDPAPI.cs
Created July 26, 2017 13:45
[C#] An interface to the .NET Data Protection API.
using System;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Cryptography;
using System.Text;
namespace Encryption
{
/// <summary>
/// myDPAPI provides an interface to the Data Protection API which provides useful system-level security tools.
@panagis
panagis / mySHA.cs
Created July 26, 2017 13:16
[C#] An interface to the .NET SHA256 hashing function.
using System;
using System.Security.Cryptography;
using System.Text;
namespace Hashing
{
/// <summary>
// mySHA provides an interface to the SHA256 hashing function.
/// </summary>
public static class mySHA