This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Requires PInvoke.BCrypt | |
//Note that AES GCM encryption is included on .Net Core 3.0, but not in the full .Net framework. | |
//This implementation requires PInvoke.BCrypt, and reulies on the Windows CNG Bcrypt library which | |
//is available on Windows Vista or later. Note also the requirement for unsafe code. | |
//As coded requires VS 2015 / C#6 or above. | |
using System; | |
using PInvoke; | |
using static PInvoke.BCrypt; | |
using System.Security.Cryptography; |