EncryptValidate Code Encryption – NuGet is something that I’m sure all of you have used before. I decided to package and publish my own NuGet package. It’s nothing fancy, it’s just a simple encryption dll that will encrypt data. It also validates encrypted data. Among the other methods, it decrypts data (not the same as the one-way EncryptData() method) and lastly also generates a SecureString object for you.
EncryptValidate Code Encryption
The methods included are as follows:
- EncryptData()
- ValidateEncryptedData()
- RijndaelEncrypt()
- RijndaelDecrypt()
- ConvertToSecureString()
- ConvertToUnsecuredString()
- IsValidEmailAddressString()
If you were looking for something else, try these links instead:
- Cryptography in .NET Succinctly
- Operation Not Legal in the Current State – Debugging ASP.NET Core
- Asynchronous Programming Succinctly Published
- Debug Client Side JavaScript in ASP.NET
- Visual Studio Solution Explorer Tips
As of this blog post, the latest version is version 1.3.0. To get it from NuGet, manage the NuGet packages for your solution. In the Browse tab, type Elysium.Crypt.EncryptValidate.
Usage of the dll is as below:
You will also find the latest usage of the code on the dedicated project page for the package. As always, any feedback or suggestions are welcome.
Why must I adopt an encryption strategy?
According to Wikipedia, the list of data breaches include:
- Facebook – 2018 – 50 million records breached due to poor security
- Ticketfly – 2018 – 26 million records hacked
- Google Plus – 2018 – 500k records breached due to poor security. Google subsequently closed down Google Plus.
- Yahoo – 2014 – 500 million records hacked (again)
- Yahoo – 2013 – 3 billion records hacked
- Adobe Systems – 2013 – 152 million records hacked
- Facebook – 2013 – 6 million records accidentally published
The list goes on and on. One thing you should realise, is that your data is never secure. No matter where it is. It is prudent to encrypt sensitive information. You must employ the best security practices in your code base. Start by giving EncryptValidate Code Encryption NuGet package a try.