:herb: Bulletproof symmetric encryption library for .NET
Bulletproof symmetric encryption library for .NET Framework.
Many of the .NET encryption code examples found online are deeply flawed.
Harpocrates protects your data by protecting you from yourself.
(Ancient Greek: Ἁρποκράτης) was the god of silence, secrets and confidentiality in the Hellenistic religion.
Using the nuget package manager…
PM> Install-Package Harpocrates -Version 1.1.0
or download the latest DLL (1.1.0) and import into your project.
string encrypted = Harpocrates.Engine.Encrypt("secret!", "password");
string plaintext = Harpocrates.Engine.Decrypt(encrypted, "password");
Hardening the password with PBKDF2 helps prevent brute force attacks.
Pass a third parameter to specify the number of iterations.
string encrypted = Harpocrates.Engine.Encrypt("secret!", "password", 10000);
string plaintext = Harpocrates.Engine.Decrypt(encrypted, "password", 10000);