You are currently viewing EncryptValidate Code Encryption – My First NuGet Package

EncryptValidate Code Encryption – My First NuGet Package

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:

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.

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.

Dirk Strauss

As a seasoned software developer with a long-standing career in C# and Visual Studio, I have had the privilege of working with a number of companies and learning from some of the most talented individuals in the industry. In addition to my professional experience, I have authored multiple books on topics such as C#, Visual Studio, and ASP.NET Core. My passion for programming is unwavering, and I am dedicated to staying current with the latest technology and sharing my expertise with others.